delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/04/12:58:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: tjoen AT dds DOT nl
Message-Id: <199907040919.LAA16704@localhost.localdomain>
Subject: Re: Libraries not working
To: cygwin AT sourceware DOT cygnus DOT com
Date: Sun, 4 Jul 1999 11:18:59 +0200 (MEST)
In-Reply-To: <377EF3D9.27DD271@visi.net> from "John Garrison" at Jul 4, 99 01:40:41 am

> /tmp/cciFT7S1.o(.text+0x103):show.c: undefined reference to
> `IMG_Load_RW'
> /usr/win32/bin/../lib/gcc-lib/i586-mingw32/egcs-2.91.57/../../../../i586-mingw32/lib/libmingw32.a(main.o)(.text+0x7b):
> undefined reference to `WinMain AT 16'
> collect2: ld returned 1 exit status
> 
> IMG_Load_RW is clearly defined in IMG.h which is included in the show.c
> source code.

I guess that it is only declared, not defined

> Also I have a main function and the FAQ says that if you
> get the undefined reference to `WinMain AT 16' to include a blank main
> statement, well, I am not building a library I already HAVE a main
> statement.

One solution: link with WinMain.o
The other was explained by Mumit Khan in a posting May 13


--
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