Your message dated Sat, 27 Sep 2014 00:05:34 +0100
with message-id <[email protected]>
and subject line Re: Bug#762997: libsfml-dev: Fails to compile with undefined 
reference errors
has caused the Debian Bug report #762997,
regarding libsfml-dev: Fails to compile with undefined reference errors
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
762997: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762997
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsfml-dev
Version: 2.1+dfsg2-1
Severity: important

Dear Maintainer,

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:

// test.cpp
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
using namespace sf;

int main()
{
        RenderWindow window(VideoMode(800, 600), "My window");
        window.setSize(Vector2u(600, 400));
        return 0;
}

And compiled with:

g++ test.cpp -o test -lsfml-graphics -lsfml-window -lsfml-system

Sure enough, this compiled fine on the upstream libs, but failed on the
packaged version. The error for the packaged version is as follows:

/tmp/ccwdiA3a.o: In function `main':
test.cpp:(.text+0x171): undefined reference to
`sf::Window::setSize(sf::Vector2<unsigned int> const&)'
collect2: error: ld returned 1 exit status

I have attached my test code.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsfml-dev depends on:
ii  libgl1-mesa-dev [libgl-dev]    10.1.0-4
ii  libglu1-mesa-dev [libglu-dev]  9.0.0-2
ii  libsfml-audio2                 2.1+dfsg2-1
ii  libsfml-graphics2              2.1+dfsg2-1
ii  libsfml-network2               2.1+dfsg2-1
ii  libsfml-system2                2.1+dfsg2-1
ii  libsfml-window2                2.1+dfsg2-1

libsfml-dev recommends no packages.

Versions of packages libsfml-dev suggests:
pn  libsfml-doc   <none>
pn  libsfml2-dbg  <none>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
using namespace sf;

int main()
{
	RenderWindow window(VideoMode(800, 600), "My window");
	window.setSize(Vector2u(600, 400));
	return 0;
}

--- End Message ---
--- Begin Message ---
On Fri, 2014-09-26 at 23:58 +0100, Alex Kerr wrote:
> Yes, that was the issue, and removing them from /usr/local/include
> works fine. Thanks, and sorry about any inconvenience.

Closing the bug.

--- End Message ---

Reply via email to