SFML community forums

Help => Audio => Topic started by: sparkon on August 25, 2012, 04:26:42 pm

Title: sf::Music error
Post by: sparkon on August 25, 2012, 04:26:42 pm
Hello guys! i have been using sfml for a bit and now i've decided to put some music in my game ( not sf::Sound ) the problem is that whenever i initialize sf::Music music; compiler ( Code::Blocks 10.05 ) gives me en error :
undefined reference to 'sf::Thread::~Thread()' i guessed that SFML use thread to handle music so i imported all the modules... but still this error.
I've been googling around but haven't found no problems like mine. Thank you for your time... waiting for answer :)
Title: Re: sf::Music error
Post by: Laurent on August 25, 2012, 05:33:10 pm
You must link to sfml-system.
Title: Re: sf::Music error
Post by: sparkon on August 26, 2012, 10:10:36 am
I linked the sfml-system-s-d and included it aswell
Title: Re: sf::Music error
Post by: Nexus on August 26, 2012, 10:40:22 am
And the error persists?

What configuration (Debug/Release, Static/Dynamic Link) do you use?
Title: Re: sf::Music error
Post by: Laurent on August 26, 2012, 12:30:43 pm
You must link libraries in the right order, as explained in the tutorial.
Title: Re: sf::Music error
Post by: sparkon on August 26, 2012, 07:58:52 pm
i'm using Debug / static and they are linked it the right order :
- graphics
-window
-system
- network
- audio
i tried - audio and - network ... but still not working
Title: Re: sf::Music error
Post by: Laurent on August 26, 2012, 08:10:52 pm
Can you show me where you read that this is the right order? :P

Read the tutorial carefully, it's clearly explained.