[SDL] SDL2 and SDL2_gfx both define some functions.

Sam Lantinga slouken at libsdl.org
Sun Oct 20 22:42:13 PDT 2013


Great!  You're welcome! :)


On Sun, Oct 20, 2013 at 10:38 PM, Dark_Oppressor <DarkOppressor at gmail.com>wrote:

> **
> Oh my goodness Sam, you are the man! Thank you! My Linux and OSX builds
> are both working now.
>
>
>
>
>  Sam Lantinga wrote:
>
>  Fixed, thanks!http://hg.libsdl.org/SDL/rev/af63b63e7aac
>
>
>
>
> On Sun, Oct 20, 2013 at 4:09 PM, Dark_Oppressor <> wrote:
>
>
>
>  Quote:
>
>  I'm using SDL2 and I've just been adding some SDL2_gfx functionality to
> my program. In Windows, I'm using the pre-built 2.0.0 SDL2, and I've
> compiled R5 of SDL2_gfx. That works fine.
>
> So I've started adding it to Linux. I built SDL2 from source using the
> 2.0.0 stable source release. I built R5 of SDL2_gfx. However, my program
> compiles but then fails to link, saying there are multiple definitions of
> several functions. These are:
>
> _transformSurfaceRGBA
> _rotozoomSurfaceSizeTrig
> _colorkey
> transformSurfaceY
>
> The only use of SDL2_gfx in my program is:
> 1) #include
> 2) filledCircleRGBA
> 3) circleRGBA
> 4) thickLineRGBA
>
> If I comment out those 3 function calls it links fine, of course.
>
> As far as I can tell, everything is identical between the two setups (same
> linking order and everything), so what on earth is causing the Linux
> version to freak out? How can this problem only occur in Linux and not
> Windows? How can I fix it?
>
>
> _______________________________________________
> SDL mailing list
>
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
>
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20131020/c257cc2c/attachment-0009.htm>


More information about the SDL mailing list