Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" Subject: compile and link errors To: cygwin AT cygwin DOT com Message-id: <3DD5C119.3030505@drew.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT 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/