linking stripped object files
Chin Chee-Kai
cheekai@gen.co.jp
Sun Mar 2 20:47:00 GMT 1997
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".
More information about the Cygwin
mailing list