Bug#762997: libsfml-dev: Fails to compile with undefined reference errors

James Cowgill james410 at cowgill.org.uk
Fri Sep 26 22:49:09 UTC 2014


Control: tags -1 moreinfo unreproducible

Hi Alex,

On Fri, 2014-09-26 at 22:46 +0100, Alex Kerr wrote:
> While trying to package a game I made using this library, I found compilation
> would not succeed with errors about an undefined reference to certain
> functions. I had previously been compiling with the most recent version of the
> library pulled from upstream (https://github.com/LaurentGomila/SFML), which
> worked fine. I made some sample code to see if it was just my program:

Your test case compiles fine for me.

It looks to me like you're using *upstream headers* with libraries from
2.1 (which won't work). Do you have anything SFML related
in /usr/local/include?

This is the commit where upstream changed the declaration of sf::Window::setSize: 
 https://github.com/LaurentGomila/SFML/commit/fe12270d62b94931834b7605136ea6c9f951d9fc

James



More information about the Pkg-games-devel mailing list