SFML community forums
Help => General => Topic started by: TajiTakeo on July 24, 2012, 05:40:17 pm
-
Hello! :)
I am using Code Blocks and sfml 1.6 on a windows 7 - 64 bit computer.
When i try to build this program (http://www.sfml-dev.org/tutorials/1.6/window-opengl.php) i get an error.
first i get "cannot find -lsfml-config-d"
and if i remove that link i get another link as an error.
i have tried to fix this problem for hours now and i am so pissed of now that i can't think :(
Please help me to fix this problem.
-
first i get "cannot find -lsfml-config-d"
sfml-config-d isn't a library you can link against.
You need to provide the full compile/link command. ;)
-
Ok! i removed that link.
But now i get several errors that you can see in the attachment.
[attachment deleted by admin]
-
If somebody have the time to help me, you can go to my stream http://en.twitch.tv/tajitakeo (http://en.twitch.tv/tajitakeo) and chat with me live. Please help me. i need it bad :(
-
You don't need to include that many header (take a look at the tutorial source file (http://www.sfml-dev.org/tutorials/1.6/sources/window-opengl.cpp)).
Also I'm not sure if you have to include the OpenGL header... ???
Additionally I advice you to use SMFL 2. ;)
-
I know that i don't have to include that many headers for that program only. But the thing is that me and my cousin wants to make an rpg game.
so that is why have those included. this is the first time we are making a game, so we don't know very mutch about how it works.
-
btw.. i can't find any OpenGL header.
Do i have to download it from some website?
-
With SFML 1.6 you don't need any additional include for OpenGL. (@eXpl0it3r, with SFML 2.0 you indeed need to include one more file : <SFML/OpenGL.hpp>.)
Now, Undef. Ref. to glClearDepthBlabla means you need to link against OpenGL.
However, I don't remember you had to do this when you use the dynamic libraries... Did you define the SFML_DYNAMIC macro as stated in the tutorial (http://www.sfml-dev.org/tutorials/1.6/start-cb.php) ?
-
With SFML 1.6 you don't need any additional include for OpenGL. (@eXpl0it3r, with SFML 2.0 you indeed need to include one more file : <SFML/OpenGL.hpp>.)
Yeah I wasn't sure anymore which way it was around.
Anyways I've successfully converted him to SFML 2. :P
-
I know that i don't have to include that many headers for that program only. But the thing is that me and my cousin wants to make an rpg game.
so that is why have those included. this is the first time we are making a game, so we don't know very mutch about how it works.
I don't want to be rude or anything like that but you should consider making something easier for this project. Like a pong. Start with something simple. This is a strong advice I gave you. I say that because I saw way too many young programers starting with a fancy project and then give up because it was too hard.