delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/03/19:21:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 4 Feb 2002 01:20:37 +0100
From: Edouard Gomez <ed DOT gomez AT wanadoo DOT fr>
To: cygwin AT cygwin DOT com
Subject: I need help in order to port a library to cygwin platform
Message-ID: <20020204002037.GA535@wanadoo.fr>
Mime-Version: 1.0
User-Agent: Mutt/1.3.27i

Hi,

I'm trying to port DevIL (http://sf.net/projects/openil) to the cygwin platform

I've already ported the project to autotools but i'm getting an error when
trying to build the dlls without the cygwin1.dll dependancy (using -mno-cygwin
gcc flag). (I use the latest cygwin version)

Here is what i get during the final ld pass :

il_pic.lo(.text+0x39b):il_pic.c: undefined reference to `_imp___iob'
il_pic.lo(.text+0x53f):il_pic.c: undefined reference to `_imp___iob'
il_lif.lo(.text+0x3c8):il_lif.c: undefined reference to `stricmp'
il_dds.lo(.text+0x1ab4):il_dds.c: undefined reference to `strnicmp'
il_internal.lo(.text+0x15):il_internal.c: undefined reference to `stricmp'
il_internal.lo(.text+0x17a):il_internal.c: undefined reference to `stricmp'
il_pal.lo(.text+0x1d8):il_pal.c: undefined reference to `stricmp'
il_pal.lo(.text+0x201):il_pal.c: undefined reference to `stricmp'
il_register.lo(.text+0x76):il_register.c: undefined reference to `stricmp'
il_register.lo(.text+0x4b6):il_register.c: more undefined references to `stricm>
collect2: ld returned 1 exit status
make[2]: *** [libIL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

But this seems strange to me because all those symbols are defined in
libmsvcrt.a lib (used when compiling with -mno-cygwin)

I've read lot of docs all over the net (the autotool book from red hat
was the most interesting) but i can't see what's wrong here.

I know that all runs fine when not using -mno-cygwin but for speed reasons
i would like not using cygwin1.dll.

If someone could help me it would be very nice

Thanks

PS  : please cc the answers because i've not subscribe to the list. thx again.
PPS : if you wanna test the lib, use the cvs DevIL module.

-- 
Edouard Gomez

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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