delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/15/22:54:17

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 15 Nov 2002 22:52:57 -0500
From: "David J. Wilson" <djwilson AT drew DOT edu>
Subject: compile and link errors
To: cygwin AT cygwin DOT com
Message-id: <3DD5C119.3030505@drew.edu>
MIME-version: 1.0
X-Accept-Language: en-us, en
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1)
Gecko/20020826

I know this subject has been on the list a lot, but even from reading 
the archives I've not been able to figure out what's going wrong.  I am 
trying to compile SDL_mixer with Ogg Vorbis support.  I downloaded, 
compiled and installed the Vorbis libraries with no problem.  That's 
what I thought anyway.  

When compiling SDL_mixer, it fails when linking everything together at 
the end:
/usr/local/lib/libvorbisfile.a(vorbisfile.o.b)(.text+0x2ad6):vorbisfile.c: 
undef
ined reference to `__errno'
/usr/local/lib/libvorbisfile.a(vorbisfile.o.b)(.text+0x2b5e):vorbisfile.c: 
undef
ined reference to `__errno'
/usr/local/lib/libvorbis.a(info.o)(.text+0xbc2):info.c: undefined 
reference to `
_imp___ctype_'
/usr/local/lib/libvorbis.a(info.o)(.text+0xcc2):info.c: undefined 
reference to `
_imp___ctype_'
make[1]: *** [libSDL_mixer.la] Error 1
make[1]: Leaving directory `/devel/SDL_mixer-1.2.4'
make: *** [all-recursive] Error 1

Now when I say I know this has been covered on the list, I mean that I 
found a lot of posts talking about using g++ with -mno-cygwin, but I 
don't think any of these programs are using c++.  There were also posts 
of missing libraries in /usr/lib/mingw, but they all seem to be there. 
 If I grep or use nm on them, I do see references to __errno and 
_imp___ctype_.  I tried many ways of linking the libraries into the 
program without any change in the result.   Perhaps there are cygwin 
versions of the same libs that are always getting linked first?  If so, 
how do I change the order?  This has been driving me mad....

Thanks



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