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

Author Topic: Linking with CodeBlocks  (Read 2260 times)

0 Members and 1 Guest are viewing this topic.

sim642

  • Newbie
  • *
  • Posts: 2
    • View Profile
Linking with CodeBlocks
« on: August 02, 2010, 05:08:41 pm »
Hi!

I followed the tutorial for CodeBlocks and got myself the copy of compiler provided there to get SFML 1.6 working and followed the tutorial.

While playing with SFML and trying its features I suddenly noticed that it doesn't matter which version of a package I use the built EXE is always the same size - -lsfml-system and -lsfml-system-s create same sized EXE but one requires DLL, the other doesn't. At this point I knew that something must be wrong, because I knew that static linking basically adds functions from dll inside EXE increasing its size, but not requiring additional DLL-s. I also found out that -lsfml-window wont compile the code correctly while -lsfml-window-s does fine.

Can anyone tell me what's going on?

EDIT:
After some messing with project options somehow the problem appears to be gone : Dynamically linked EXE-s are now smaller than Statically linked ones and also Debug variants are bigger that Release. Even if it works I get one warning about some linking stuff, but that disappeared too by sudden.

 

anything