Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>,
	<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Content-type: text/plain
Date: Mon, 16 Aug 1999 12:50:55 +0200
From: "Schulz, Kay" <Kay_Schulz@KirchGruppe.DE>
Message-id: <E5B380EF5CD5D21182890090274009BA3BA534@arnold.kirchgruppe.de>
Mime-version: 1.0
Subject: WinMain@16
To: "'khan@xraylith.wisc.EDU.'" <khan@xraylith.wisc.EDU>,
        "'jeg@visi.net'" <jeg@visi.net>,
        "'cygwin@sourceware.cygnus.com'"	 <cygwin@sourceware.cygnus.com>
X-mailer: Internet Mail Service (5.5.2448.0)

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'
collect2: ld returned 1 exit status

It'S my first c program to compile so I'm quite helpless
Thanks


"A love poem should be printed in just two copies: one for the
 poet, one for the beloved."
-Josef Vissarionovich Djugashvili-

Kay Schulz


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

