This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: WinMain@16
- To: "Schulz, Kay" <Kay_Schulz@KirchGruppe.DE>
- Subject: Re: WinMain@16
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Tue, 17 Aug 1999 02:09:29 -0500
- cc: "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
"Schulz, Kay" <Kay_Schulz@KirchGruppe.DE> writes:
> Hi
> I saw your postings to cygwin mailing list and thought I might be allowed to
> asked a simple question
> Win NT SP 3
> Cygwin b20
> I have a lex file which compile to a C file. No problems
> Then I try to compile this file to an executable
> The linker fails
> 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'
Well, do you have main() defined in lex.yy.c? I bet not.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
- References:
- WinMain@16
- From: "Schulz, Kay" <Kay_Schulz@KirchGruppe.DE>