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

Author Topic: Error installing SFML 1.6 using code::blocks 10.05  (Read 1754 times)

0 Members and 1 Guest are viewing this topic.

kingcools

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Error installing SFML 1.6 using code::blocks 10.05
« on: November 24, 2011, 07:55:06 pm »
Hello, i followed this instruction to install sfml:

http://www.sfml-dev.org/tutorials/1.6/start-cb.php and used the first method of installing(the copy one).
After doing what it tells me and compiling the given example code i get the following error message:

"program cant be started due to lacking libgcc_s_dw2-1.dll on my pc.[...]"
its obvious whats the problem but i dont understand why a) this has not been discussed in the tutorial and b) where i can find this file.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Error installing SFML 1.6 using code::blocks 10.05
« Reply #1 on: November 24, 2011, 08:03:17 pm »
It has nothing to do with SFML, it's a DLL of the compiler -- you can find it in your mingw/bin folder. You can get rid of it with a specific linker option.
Laurent Gomila - SFML developer

kingcools

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Error installing SFML 1.6 using code::blocks 10.05
« Reply #2 on: November 24, 2011, 08:57:23 pm »
ok thank you :) someone should add that maybe to the tutorial as i did everything it said and still got that error

kingcools

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Error installing SFML 1.6 using code::blocks 10.05
« Reply #3 on: November 25, 2011, 12:00:09 am »
Quote from: "Laurent"
It has nothing to do with SFML, it's a DLL of the compiler -- you can find it in your mingw/bin folder. You can get rid of it with a specific linker option.


i looked into it now but can not find an option related to that dll, could you be a bit more specific?

kingcools

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Error installing SFML 1.6 using code::blocks 10.05
« Reply #4 on: November 25, 2011, 04:15:11 am »
Nevermind, i got it right.

BUT: is there a way to not have to copy some dlls everytime you compile a new project? Can't you tell the compiler to automatically include those dlls?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Error installing SFML 1.6 using code::blocks 10.05
« Reply #5 on: November 25, 2011, 07:59:41 am »
It doesn't make sense, you can't "include DLLs". All you can do is to link to the static version of the libraries (if available) so that there's no DLL.
Laurent Gomila - SFML developer