|
From: | Nikos Chantziaras |
Subject: | Re: [Mingw-cross-env-list] SDL_sound |
Date: | Sat, 02 Oct 2010 03:02:15 +0300 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100927 Thunderbird/3.1.4 |
On 10/01/2010 04:24 PM, Mark Brand wrote:
Hi Nikos, Thanks for that, but it does not link. Can you try to get this working? Does sdl_sound need a .pc file?I don't know. It does not have one on Linux. I suppose linking fails because the pkg-config for SDL is missing needed libs to link against. This happens all the time when linking statically; I can't remember the last time I didn't need to manually create a link command due to lots of missing "-logg -lvorbis -lvorbisfile -lthis -lthat -laddinfinitum" :-/Well, if you can just add the list of libraries to link to the "gcc" line, that will be fine. At least it will provide a useful example.
OK, I've now tried it. But it fails with a whole lot of errors like this:/home/realnc/opt/mingw/usr/i686-pc-mingw32/lib/libSDL_sound.a(libmpglib_la-interface.o): In function `__fpclassifyl': /home/realnc/opt/mingw/usr/lib/gcc/i686-pc-mingw32/4.5.1/../../../../i686-pc-mingw32/include/math.h:359: multiple definition of `___fpclassifyl' /home/realnc/opt/mingw/usr/i686-pc-mingw32/lib/libSDL_sound.a(libmpglib_la-mpglib_common.o):/home/realnc/opt/mingw/usr/lib/gcc/i686-pc-mingw32/4.5.1/../../../../i686-pc-mingw32/include/math.h:359: first defined here
[Prev in Thread] | Current Thread | [Next in Thread] |