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

Author Topic: Problem with linking  (Read 1453 times)

0 Members and 1 Guest are viewing this topic.

Szustarol

  • Newbie
  • *
  • Posts: 19
    • View Profile
Problem with linking
« 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
AW: Problem with linking
« Reply #1 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)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Szustarol

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problem with linking
« Reply #2 on: November 05, 2016, 11:00:38 pm »
still getting erros :/

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Problem with linking
« Reply #3 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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Szustarol

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problem with linking
« Reply #4 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

Szustarol

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Problem with linking
« Reply #5 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)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Problem with linking
« Reply #6 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. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/