SFML community forums

Help => General => Topic started by: dwarfman78 on May 27, 2014, 10:56:18 pm

Title: Problem linking to SFML (problem with sfml dependencies)
Post by: dwarfman78 on May 27, 2014, 10:56:18 pm
under windows :

I switched to mingw 4.8 so i had to recompile SFML, got the last revision from github repo in the meantime too (to check if the sf::Music pause problem is fixed).

Building sfml is fine but when i build my project (linking statically to SFML which was ok with the release version built with mingw 4.7), i have undefined references to openal, when i add extlib to linker directory and openal32 in lib dependencies these errors disapear but then i have linking problem with libsndfile then guess what ? With glew...

What's wrong ? never had to link to these shit before and by the way i never quite understood why i needn't link to openal but need to put that damn dll next to my exe.

So can anybody enlight me with the logic behind so i can build my project ?

Thanks.

Title: Re: Problem linking to SFML (problem with sfml dependencies)
Post by: G. on May 27, 2014, 11:01:14 pm
When statically linking with > 2.1
https://github.com/SFML/SFML/wiki/FAQ#build-link-static
Title: Re: Problem linking to SFML (problem with sfml dependencies)
Post by: dwarfman78 on May 27, 2014, 11:37:46 pm
thanks buddy that was almost painless,

i had to add -static to linker options too to avoid libstdwhatever.dll to be added next to the exe.