SFML community forums
Help => General => Topic started by: Kitikonti553 on September 22, 2007, 10:00:55 am
-
im using Dev-C++ 5, and im not entirely sure how to add the SFML inlude files to the compiler, can anyone help me? :oops:
-
What includes are you trying now ?
Have you tried the first Code::Block tutorial ? C::B is the future of Dev-C++ and is based on the same techno.
-
yes i did try the Code::Block tutorial, but still confused.
-
The includes are in the code. Your project must be able to see files included. You have two possibilities to do that :
- copying the included files in the include directory of your copiler
- copying the included files in some place near your source
For the first case, you use #include <>
For the second, #include ""
Isn't it simple ?
-
well what i ment was, that i was trying to add the SFML directories to my compiler but it wasnt working, so i guess ill try just coping the files instead
-
Which directory did you copy, and where ?
You have normally to copy only the include directory in the compiler's include directory, in order to end with something like :
- compiler
|- include
|- sfml
-
thats what i do, but my compiler always does 1 of 2 things: either 1) doesnt reconize the include files and gives me a linker error, or 2) reconizes them but give me a crap load of parse errors
-
Ah ! Can we see those errors please ? :)
-
ok, i tryed that thread tutorial, now on line 17 it says "Thread.Launch();" right? well i get these linker error when i dont put "sf::" in front of it(i would also like to note i also added "using namespace sf;" to my file**): http://i137.photobucket.com/albums/q239/Kitikonti/linker_error.jpg . but when i do but add "sf::" to it, i get this parse error: http://i137.photobucket.com/albums/q239/Kitikonti/parse_error.jpg .
-
If you use "using namespace sf", every SFML class will be accessible in the global scope. This means that both the Thread class and the Thread instance will conflict, because they have the same name. Just change the instance name (MyThread, or whatever).
-
well that solves the parse errors, but i still get the linker ones
-
Do you link with sfml-system ?
-
yeah i do
-
Are you linking with any other SFML library ?
-
i dont believe so, i just dont get it, nothing seems to be working :?