mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] SDL_sound


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] SDL_sound
Date: Sun, 3 Oct 2010 06:29:05 +1000

On 2 October 2010 10:02, Nikos Chantziaras <address@hidden> wrote:
> 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

You wonder how people stayed sane before pkg-config!

I checked in the test program:

http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/d94200f96aa7

Then went through a few iterations to come up with a build that succeeds:

http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/deab4460f78d

With the ordering of included libs, we should be able to come up with
a *.pc file that makes this easy.

Please test and report your findings.

Cheers,

Tony



reply via email to

[Prev in Thread] Current Thread [Next in Thread]