SFML community forums

Help => General => Topic started by: Szustarol on November 05, 2016, 10:24:35 pm

Title: Problem with linking
Post by: Szustarol on November 05, 2016, 10:24:35 pm
Hi!
On linux i just go -lsfml-<part> when i try to link something, on windows i did what is on screenshot, and i get
undefined reference to sf::err() linker errors
pic attached my linker list, Im not sure why it is not working
Title: AW: Problem with linking
Post by: eXpl0it3r on November 05, 2016, 10:37:49 pm
The order is reversed. Just turn around the order of the listed libs and you should be fine.
(If not, please provide the error message)
Title: Re: Problem with linking
Post by: Szustarol on November 05, 2016, 11:00:38 pm
still getting erros :/
Title: Re: Problem with linking
Post by: eXpl0it3r on November 05, 2016, 11:08:01 pm
It needs to be:

vorbisenc
vorbisfile
vorbis
ogg

See here: http://www.sfml-dev.org/tutorials/2.4/start-cb.php
Title: Re: Problem with linking
Post by: Szustarol on November 05, 2016, 11:11:23 pm
uh, i link them statically and i get error that libopenal32.dll is missing
what the actuall hell
Title: Re: Problem with linking
Post by: Szustarol on November 05, 2016, 11:31:43 pm
refresh
something is seriously bad
when i run game in dynamic linking mode, everything is fine
when i run in static, things mess up, this is kind of big project which i started on linux and everything was fine, now on static linking things just mess up (wrong sprite is drown and things like this)
Title: Re: Problem with linking
Post by: eXpl0it3r on November 05, 2016, 11:55:42 pm
uh, i link them statically and i get error that libopenal32.dll is missing
what the actuall hell
Due to LGPL's licensing of OpenAL, it can't be linked statically.

when i run in static, things mess up, this is kind of big project which i started on linux and everything was fine, now on static linking things just mess up (wrong sprite is drown and things like this)
Figure out what the issue is and provide some proper information, so we can help. :)