Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - simfouy

Pages: [1]
1
General / Re: Problem with colors on Ubuntu
« on: April 11, 2017, 01:43:39 pm »
Well you shouldn't. If your code depends on the libraries, you need to put them in front of the linker arguments.
Just because something works on system X doesn't mean it's generally correct. ;)
I'm not sure what you mean by linker. I'm linking only at runtime

2
General / Re: Problem with colors on Ubuntu
« on: April 11, 2017, 01:21:24 pm »
In your build command, did you place your cpp file after the linker arguments?
Yes  :'( But as I said, this code works on ArchLinux but not on my Ubuntu  :'(

3
General / Re: Problem with colors on Ubuntu
« on: April 11, 2017, 01:14:08 pm »
Well I include these headers in the lib I'm calling with dlopen:
Quote
#include <SFML/Graphics.hpp>
#include <SFML/Window/Keyboard.hpp>
Is that enough ?

4
General / Re: Problem with colors on Ubuntu
« on: April 11, 2017, 12:52:59 pm »
Yes, it returns NULL and dlerror return this:
Quote
undefined symbol: _ZN2sf5Color5BlackE

5
General / Re: Problem with colors on Ubuntu
« on: April 11, 2017, 12:46:15 pm »
I compile my graphic lib with
Quote
-lsfml-graphics -lsfml-window -lsfml-system
. This lib includes all the SFML stuff.
I then link at runtime but dlopens fails with the error I gave in the first post.

6
General / Problem with colors on Ubuntu
« on: April 11, 2017, 12:10:27 pm »
Hi,
I recently (yesterday) installed libsfml-dev on Ubuntu 16.04, and I get a weird error while trying to load my graphic lib (using sfml) trough dlsym:
Quote
undefined symbol: _ZN2sf5Color5BlackE
I tried on an other system (ArchLinux) and everything works fine. This is the part causing problem :
Quote
sf::Color::Black
I tried to change the color (to :
Quote
sf::Color::Blue
), and the error becomes
Quote
undefined symbol: _ZN2sf5Color5BlueE
So the error is from sf::Color
Any ideas ?  :'(

Pages: [1]
anything