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

Author Topic: Why .lib and .dll?  (Read 1289 times)

0 Members and 1 Guest are viewing this topic.

TheDuceCat

  • Newbie
  • *
  • Posts: 12
    • View Profile
Why .lib and .dll?
« on: May 20, 2012, 06:33:57 am »
Why does SFML require you to link .lib files and have the .dll files there? Whereas something like Box2D requires only the .lib files.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Why .lib and .dll?
« Reply #1 on: May 20, 2012, 09:15:02 am »
Search "dynamic vs static libraries" on Google ;)
Laurent Gomila - SFML developer

TheDuceCat

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Why .lib and .dll?
« Reply #2 on: May 20, 2012, 04:46:20 pm »
Thanks! Is there any way I can just use the lib file, so I don't have to include the dll files separate in my build?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Why .lib and .dll?
« Reply #3 on: May 20, 2012, 04:59:30 pm »
Yes, that's called "static linking". Search for it and the keywords mentioned by Laurent, maybe combined with "MSDN".
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

TheDuceCat

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Why .lib and .dll?
« Reply #4 on: May 20, 2012, 05:22:45 pm »
Thanks a lot!