delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <4.3.1.2.20010702104915.02071f00@pop.ma.ultranet.com> |
X-Sender: | lhall AT pop DOT ma DOT ultranet DOT com |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.1 |
Date: | Mon, 02 Jul 2001 10:51:48 -0400 |
To: | "Pierre Loic Herve" <pierloic AT free DOT fr>, "cygwin" <cygwin AT cygwin DOT com> |
From: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
Subject: | Re: gcc howto |
In-Reply-To: | <006201c10306$5d54a500$520010ac@cirec.com> |
Mime-Version: | 1.0 |
At 10:50 AM 7/2/2001, Pierre Loic Herve wrote: >Hi all ! > >I have been to the the FAQ and to Google but i could not find an answer > >I have in //c/pierre/src/test >int main(int toto , char ** tata) { > return 0; >} > >I go >//c/pierre/src/test> gcc -c main.c >Thats OK >//c/pierre/src/test> ls >main.c main.o > >Then I go >//c/pierre/src/test> gcc main.o >/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/../../../../i686-pc-cygwin/bin/ld: >cannot find -luser32 >collect2: ld returned 1 exit status > >So i try : >//c/pierre/src/test> gcc -v -L//c/WINDOWS/SYSTEM main.o >Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/specs >gcc version 2.95.3-4 (cygwin special) > >/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/collect2.exe -Bdynamic --dll-search >-prefix=cyg >/usr/lib/crt0.o -L//c/WINDOWS/SYSTEM -L/usr/local/lib -L/usr/lib -L/usr/lib/ >gcc-lib/i686-pc-cygwin/2.95.3-4 >main.o -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc >/usr/lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xe6):_cygwin_crt0_common. >cc: undefined reference to `GetModuleHandleA AT 4' >collect2: ld returned 1 exit status > >What's wrong with my gcc ? You missed at least one package in the install (w32api), either because you decided to pick-and-choose or because the installation didn't go correctly. Either way, rerun setup and install *all* packages. Setup knows which ones are already installed so this process should update/ install only those packages that need it. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |