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

Author Topic: System.dll problem (bear with me please...)  (Read 2421 times)

0 Members and 1 Guest are viewing this topic.

SortOfAlias

  • Newbie
  • *
  • Posts: 2
    • View Profile
System.dll problem (bear with me please...)
« on: February 12, 2012, 11:38:11 am »
Hi all,

I know this topic was adressed before but I am too stupid I think. I will explain what I have done so far:

1. Installed Code:Blocks

2. unzipped SFML-1.6 into c:\SFML-1.6

3. In Code::Blocks: Global Compiler Settings ->SearchDirectories->Compiler-> c:\SFML-1.6\include

4. Project->BuildOptions->Debug->LinkerSettings->sfml-graphics-d, sfml-window-d, sfml-system-d

5. Project->BuildOptions->Release->sfml-graphics, sfml-window, sfml-system

6. path variable in Windows set to path: c:\SFML-1.6\lib

Typed in the sample code:

Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}



Still getting the error message "sfml-system.dll is missing". Static linking gives the same error.

I suppose it is some obvious mistake I am making here, but I hope someone can help. Thanks in advance for some kind answers.

Guni

  • Newbie
  • *
  • Posts: 20
    • View Profile
System.dll problem (bear with me please...)
« Reply #1 on: February 12, 2012, 07:22:25 pm »
Did you copy sfml-system.dll to the folder where your .exe is located? Or if the .exe was created in Debug mode, did you copy sfml-system-d.dll to where the folder where your .exe is located?

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
System.dll problem (bear with me please...)
« Reply #2 on: February 13, 2012, 01:39:09 am »
Did you include the full file name of the files that are being linked by the linker?

Change out the  -s and -d name parts and drop the [] and you should be able to get all the setups needed.
libsfml-graphics[-s][-d].a
libsfml-window[-s][-d].a
libsfml-audio[-s][-d].a
libsfml-network[-s][-d].a
libsfml-system[-s][-d].a

You most likely didn't include the dll file it is griping about in your project.  All you have to do is find where you put your SFML Library and copy the DLL files, then go to where your game's directory (where your game is saved) and paste them in there.
I have many ideas but need the help of others to find way to make use of them.

SortOfAlias

  • Newbie
  • *
  • Posts: 2
    • View Profile
System.dll problem (bear with me please...)
« Reply #3 on: February 13, 2012, 09:12:05 am »
Thanks for the reply. I want to avoid having to copy the library files everytime I start a new project, so I included the path assignment in the environment variables for Windows.
But I will try your suggestion too.

edit...

I've found a nice tutorial on youtube



And the sample with the system clock works now! Anyway, thanks for your help.

 

anything