This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compile and link errors

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 `
/usr/local/lib/libvorbis.a(info.o)(.text+0xcc2):info.c: undefined reference to `
make[1]: *** [] 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....


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]