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

Author Topic: Compiling Necessary Libraries into executable  (Read 2680 times)

0 Members and 1 Guest are viewing this topic.

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Compiling Necessary Libraries into executable
« on: October 20, 2008, 08:29:28 pm »
How do I include the necessary DLL's (sfml-graphics, sfml-system, etc.) into the executable so that they do not need to be included in the working directory?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiling Necessary Libraries into executable
« Reply #1 on: October 20, 2008, 08:48:59 pm »
You link to the static libraries (suffix -s).
Laurent Gomila - SFML developer

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Compiling Necessary Libraries into executable
« Reply #2 on: October 20, 2008, 09:47:29 pm »
Just for clarification:

Instead of linking: -lsfml-system

I would link to: -lsfml-system-s

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
Compiling Necessary Libraries into executable
« Reply #3 on: October 21, 2008, 07:11:27 am »
Quote from: "e_barroga"
Just for clarification:

Instead of linking: -lsfml-system

I would link to: -lsfml-system-s

Yes. Remember to add the "-s" to every SFML package you use.

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Compiling Necessary Libraries into executable
« Reply #4 on: October 21, 2008, 06:33:31 pm »
Thank you for the help.