delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/16/09:14:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Mon, 16 Aug 1999 13:45:54 +0200 (CEST)
From: Pontus Lidman <pontus AT mathcore DOT com>
X-Sender: pontus AT atlas DOT mathcore DOT se
To: "Schulz, Kay" <Kay_Schulz AT KirchGruppe DOT DE>
cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: WinMain AT 16
In-Reply-To: <E5B380EF5CD5D21182890090274009BA3BA534@arnold.kirchgruppe.de>
Message-ID: <Pine.LNX.4.05.9908161342210.8578-100000@atlas.mathcore.se>
MIME-Version: 1.0

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 AT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019