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

Author Topic: Problem linking to SFML (problem with sfml dependencies)  (Read 1308 times)

0 Members and 1 Guest are viewing this topic.

dwarfman78

  • Full Member
  • ***
  • Posts: 228
  • I'm bietzsche, Nietzsche !
    • MSN Messenger - cd4c@hotmail.com
    • View Profile
    • Email
Problem linking to SFML (problem with sfml dependencies)
« 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.

@dwarfman78
github.com/dwarfman78

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: Problem linking to SFML (problem with sfml dependencies)
« Reply #1 on: May 27, 2014, 11:01:14 pm »

dwarfman78

  • Full Member
  • ***
  • Posts: 228
  • I'm bietzsche, Nietzsche !
    • MSN Messenger - cd4c@hotmail.com
    • View Profile
    • Email
Re: Problem linking to SFML (problem with sfml dependencies)
« Reply #2 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.
@dwarfman78
github.com/dwarfman78