This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
linking stripped object files
- To: GNU WIN32 <gnu-win32 at cygnus dot com>
- Subject: linking stripped object files
- From: Chin Chee-Kai <cheekai at gen dot co dot jp>
- Date: Mon, 3 Mar 1997 13:35:29 -447834328 (JST)
Problem description:
I have, for example, source files "1.c", "2.c", "3.c" compiled
into objects using:
gcc -g -c 1.c
gcc -g -c 2.c
gcc -g -c 3.c
Linking them producing "a.exe" is fine using:
gcc -g 1.o 2.o 3.o
Suppose now I do this (which works on Unix, producing an executable
that does not have debugging information):
rm -f a.exe
strip *.o
gcc -g 1.o 2.o 3.o
I get:
C:\CYGNUS\H-I386-CYGWIN32\lib\gcc-lib\i386-cygwin32/cygnus-2.7.2-961023/\
../../../../i386-cygwin32/lib/libcygwin.a(libcmain.o): In function `main':
/pizza/mushroom/noer/beta17/src/winsup/libcmain.cc:30: undefined reference \
to `WinMain@16'
I got a pizza for free again :)
Anyone has an idea?
Chin Chee-Kai (Last, First)
Internet Email-ID: cheekai@gen.co.jp
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".