Problem installing SFML(missing file?)

Ive spent an hour now wondering what is wrong with my installation of SFML. I followed the tutorial exactly but here is what i get:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
#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);
    }
}



i followed the tutorial exactly but every time i run it it tells me:
The program can't start because sfml-system.dll is missing from your computer. Try reinstalling the program to fix this problem.

heres the tutorial i followed:http://www.sfml-dev.org/tutorials/1.6/start-cb.php
What might i have done wrong? i installed mingw 4.4 also, so its all up to date. If you need more info on what i did i can post more, just ask. Thanks for the help
What do you do that causes that message to appear? The dll needs to be in the same place as the EXE in some cases, or the same place as the project in some cases - it depends on how you're running the app.
Ah we're doing the same thing! I just dealt with this problem last night, find wherever you extracted your SFML folder. In one o the sub folders you'll find a bunch of a dlls and you'll see the one you need. I just copied all the dlls to the same directory as my exe and it fixed the issue, but I ran into another dll issue lol
Thats, got that working, but now ive come across another error. I created a SFML project using the codeblocks wizard and i keep getting the error:
1
2
ld.exe||cannot find -lsfml-audio.dll|
||=== Build finished: 1 errors, 0 warnings ===|


I went to build options and put the following lines under release-> linker settings-> Other linker options:
1
2
3
4
-lsfml-graphics
-lsfml-window
-lsfml-audio
-lsfml-system


i checked my folder and i do infact have that file, whats going on?
"ld.exe||cannot find -lsfml-audio.dll|"
Why is it looking for "-lsfml-audio.dll" instead of "sfml-audio.dll"?
I have no clue, heres the code the project started with when i opened it:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <SFML/Graphics.hpp>

int main()
{
    // Create the main window
    sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");

    // Load a sprite to display
    sf::Image Image;
    if (!Image.LoadFromFile("cb.bmp"))
        return EXIT_FAILURE;
    sf::Sprite Sprite(Image);

	// Start the game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear screen
        App.Clear();

        // Draw the sprite
        App.Draw(Sprite);

        // Update the window
        App.Display();
    }

    return EXIT_SUCCESS;
}


is it something i need to change in the setting of my project?
The SFML tutorial tells you to link the -lsmfl- dlls. To be honest, I don't know the difference. I'm completely new to this third party SDK environment. And it seems to be quite the headache to get it rolling
Im with you there Resident, extremely confusing. Im just hoping one of the many C++ veterans can help solve my problems, probably seems like a simple problem in their minds.
Yea probably haha. I've spent quite awhile on C++, to the point of being familiar with most of its features. But the moment I try to get some new knowledge now, life just begins to suck. So frustrating, tempting to go to Java but I know better than that :p
closed account (zb0S216C)
Have you tried placing the DLL within C:\Windows\System32? Usually, that's where the OS searches. If you're on a x64 machine, try placing the DLL within C:\Windows\SysWOW64.

Wazzak
Last edited on
That's where I put my DLLs at first. I still had the error. I have a thread up right now about some gcclib_something.dll missing now
Tried putting the files in the sysWOW64, but no luck. Still searching on Google also... this problems killing me!
closed account (zb0S216C)
It seems the developer of SFML answered this on SMFL's forum[1].

References:
[1] http://www.sfml-dev.org/forum/viewtopic.php?t=3691&sid=9c570a1bfd419018758aadd3e6b2a34d


Wazzak
That was actually the thread I found to solve the issue. Did nothing for my gcclib dll though
Topic archived. No new replies allowed.