delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/12/04:50:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 12 Jan 2001 10:50:32 +0100 (MET)
From: SZUCS Gabor <szgabor AT sirius DOT cab DOT u-szeged DOT hu>
X-Sender: szgabor AT sirius
To: cygwin AT cygwin DOT com
Subject: Re: WinMain AT 16
In-Reply-To: <3A5EC144.6D4C4777@sirius.cab.u-szeged.hu>
Message-ID: <Pine.GSO.4.21.0101121045250.677-100000@sirius>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id EAA06308

Dear List members,

Sorry for being hasty and posting before reading the faq; however, I still
have the question, just let me ask it another way.

On Fri, 12 Jan 2001, Szûcs Gábor wrote:

> I have downloaded the latest release yesterday. My problem is with the
> following error message:
> 
> g++ -g *.o -L/usr/X11R6/lib -lSDL -lSDL_mixer -lSDL_image -lGL -lGLU -o
> bl2d
> /usr/lib/libcygwin.a(libcmain.o)(.text+0x6a):libcmain.c: undefined
> reference to `WinMain AT 16'
> collect2: ld returned 1 exit status
> make: *** [ld] Error 1

Regarding to the faq, maybe the libs are in incorrect order (might be a
problem if some are symlinks to libcygwin.a), but as you can see, all the
libs are at the end of the command line. I'm sure that THESE libs aren't
symlinks to libcygwin.a.

The other possible reason is, that maybe I should include a
main() function. But what if I already have one?

Still hoping an early response (please CC to my address,
szgabor AT sirius DOT cab DOT u-szeged DOT hu)

Yours,
Gabor


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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