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

Author Topic: Problem with the Tutorial for VS 2010 C++ Express  (Read 1394 times)

0 Members and 1 Guest are viewing this topic.

Rexona for men

  • Newbie
  • *
  • Posts: 24
    • View Profile
Problem with the Tutorial for VS 2010 C++ Express
« on: July 08, 2011, 02:27:27 pm »
As described in the Tutorial, I copied the the files in the lib folder and the SFML folder in the include folder of my VS directory.
I also Setup VS, that it can find the files.

But as I started the tutorial program, I got an error that system.dll is missing.
I looked in the lib folder of VS and actually there was system.dll among others.
After this I searched a bit in this forum and found out, that system.dll should copied in the debug folder of the project.
Doing this, I was able to start the program succesfully.

Now my Question is, have I really to copy always system.dll( and maybe others?) in the debug folder, or did I just a mistake?

with best regards

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem with the Tutorial for VS 2010 C++ Express
« Reply #1 on: July 08, 2011, 02:50:38 pm »
If an application depends on a DLL, it must find this DLL when it starts (because it needs it to run!).

So you have two options:
- always copy the DLLs in the same directory as the application's executable
- copy once the DLLs in a directory that is known by the OS (= all paths that are in the PATH environment variable, such as C:\Windows\System32, C:\Program Files, etc.)

And don't forget that you can use the static libraries to avoid DLLs.
Laurent Gomila - SFML developer

Rexona for men

  • Newbie
  • *
  • Posts: 24
    • View Profile
Problem with the Tutorial for VS 2010 C++ Express
« Reply #2 on: July 08, 2011, 05:31:53 pm »
Thank you very much :D

Now I understand.

I'm from Gemany and my english is not good as it should.

I read this
Quote
If you linked against the dynamic versions of the SFML libraries donc forget to copy the corresponding DLLs


as "If you use dynamic libaries, you don't have to copy dlls", but in fact it means the opposite.