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

Author Topic: SFML dont work in Code::Blocks  (Read 2530 times)

0 Members and 2 Guests are viewing this topic.

Alfonso1

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML dont work in Code::Blocks
« on: May 04, 2011, 02:44:29 am »
I had download codeblocks-10.05mingw-setup.exe form here:
http://www.codeblocks.org/downloads/26

and I had dowload SFML for Windows - MinGW (Code::Blocks) (34.4 MB)
from here:
http://www.sfml-dev.org/download.php

and I had follow the steps of these totorial:
Tutorial - Getting started - SFML and Code::Blocks (MinGW)
http://www.sfml-dev.org/tutorials/1.6/start-cb.php

and try to compile and execute the example code in that totorial, but it give me an error, it said me that doesn't find "sfml-system.dll"

how can I repare these error?

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
SFML dont work in Code::Blocks
« Reply #1 on: May 04, 2011, 03:51:17 am »
You need to put the DLLs in a location that your executable can find. This is in the same directory as the built executable if you run it directly or perhaps the project file's directory if you run it from the IDE or debug etc.

The DLLs are included in the SFML package you downloaded - you need to use the ones relevant to the specific libs you linked to in your project. (If you link to sfml-system-d, you need sfml-system-d.dll)

Alfonso1

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML dont work in Code::Blocks
« Reply #2 on: May 04, 2011, 05:02:52 am »
I put the library sfml-system.dll, but now it said me that doesn't find "libgcc_s_dw2-1.dll"

and that library is not in the package I downloaded

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
SFML dont work in Code::Blocks
« Reply #3 on: May 04, 2011, 08:29:25 am »
That DLL should come with your MinGW distribution (probably find it in your Code::Blocks install path/mingw/bin).

Alfonso1

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML dont work in Code::Blocks
« Reply #4 on: May 04, 2011, 05:46:12 pm »
I search the library but it isn't in my mingw carpet or codeblock carpet or sfml carpet, neither in the sub carpets