WinMain@16
Pontus Lidman
pontus@mathcore.com
Tue Aug 31 23:49:00 GMT 1999
On Mon, 16 Aug 1999, Schulz, Kay wrote:
> bash-2.02$ gcc -o foo lex.yy.c
> C:\TEMP\ccnuBGU5.o(.text+0xa6c):lex.yy.c: undefined reference to `yywrap'
> C:\TEMP\ccnuBGU5.o(.text+0x1301):lex.yy.c: undefined reference to `yywrap'
> d:\unix\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.
> 57\.
> .\..\..\..\i586-cygwin32\lib/libcygwin.a(libcmain.o): In function `main':
> /home/noer/src/b20/comp-tools/devo/winsup/libcmain.cc:38: undefined
> reference to
> `WinMain@16'
> collect2: ld returned 1 exit status
Try:
gcc -o foo lex.yy.c -lgdi32 -lkernel32 -luser32
to link the standard Win32 libraries. Maybe -lshell32 also, if the line
above doesn't work.
Regards,
Pontus
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list