problem with SFML and code::blocks

so i followed all the instuction:
SFML\include --> CodeBlocks\MINGW\include
SFML\lib --> CodeBlocks\MINGW\lib
Compiler and debugger menu, Global compiler settings / Search directories
added SFML\include
added SFML\lib
did the test code:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#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;
}



then i went to Project Build options , linker setting:


1
2
3
-lsfml-graphics
-lsfml-window
-lsfml-system



and then i went to compiler settings , #define and added SFML_DYNAMIC
ran the program and got this:



1
2
3
Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions  -O2  -DSFML_DYNAMIC    -Iinclude -IC:\SFML\SFML-1.6\CSFML\include  -c "C:\Users\TheBreadCat\Documents\My Games\C\xxax\main.cpp" -o obj\Release\main.o' in 'C:\Users\TheBreadCat\Documents\My Games\C\xxax' failed.
Nothing to be done.



so what to do?
Last edited on
Topic archived. No new replies allowed.