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

Author Topic: Not all libraries present for static linking  (Read 1109 times)

0 Members and 1 Guest are viewing this topic.

Tim Leach

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Not all libraries present for static linking
« on: October 08, 2017, 10:35:10 pm »
I'm a stickler for the compact and easy, so I'm using static linking to get my final programs down to a single executable. I'm on Windows, 64-bit, using Visual Studio 2017.

From the FAQ:

Quote
Note: For Windows all dependencies can be found in the extlibs directory.

https://github.com/SFML/SFML/tree/master/extlibs

No, they can't!! Where are jpeg.lib, winmm.lib, opengl32.lib, or anything except the base sfml and audio libraries??

Listing only the libraries that are present in Visual Studio's "additional dependencies" section means I get loads of linker errors, so clearly I do need them, but listing the absent ones gets linker errors as well!

How can I get my code to compile? Are these libraries present elsewhere on my computer?

Sorry for my angry tone, I am very frustrated.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Not all libraries present for static linking
« Reply #1 on: October 08, 2017, 11:09:27 pm »
jpeg was removed in one of the latest releases, so if you're using master branch it's not needed.
winmm, opengl and other are system libraries and are shipped with your compiler, you just need to specify them and the linker will find them.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tim Leach

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Not all libraries present for static linking
« Reply #2 on: October 08, 2017, 11:35:59 pm »
Fixed!! Thank you so much, now I can start fixing the other problems with the build ;)

 

anything