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

Author Topic: Cannot find -lsfml-*  (Read 3376 times)

0 Members and 3 Guests are viewing this topic.

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Cannot find -lsfml-*
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: Cannot find -lsfml-*
« Reply #1 on: July 24, 2012, 05:47:58 pm »
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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cannot find -lsfml-*
« Reply #2 on: July 24, 2012, 07:36:44 pm »
Ok! i removed that link.
But now i get several errors that you can see in the attachment.

[attachment deleted by admin]

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cannot find -lsfml-*
« Reply #3 on: July 24, 2012, 07:50:54 pm »
If somebody have the time to help me, you can go to my stream http://en.twitch.tv/tajitakeo and chat with me live. Please help me. i need it bad :(

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: Cannot find -lsfml-*
« Reply #4 on: July 24, 2012, 07:56:02 pm »
You don't need to include that many header (take a look at the tutorial source file).

Also I'm not sure if you have to include the OpenGL header... ???

Additionally I advice you to use SMFL 2. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cannot find -lsfml-*
« Reply #5 on: July 24, 2012, 08:01:22 pm »
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.

TajiTakeo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cannot find -lsfml-*
« Reply #6 on: July 24, 2012, 08:07:39 pm »
btw.. i can't find any OpenGL header.
Do i have to download it from some website?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Cannot find -lsfml-*
« Reply #7 on: July 24, 2012, 10:54:17 pm »
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 ?
SFML / OS X developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: Cannot find -lsfml-*
« Reply #8 on: July 24, 2012, 10:56:32 pm »
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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Cannot find -lsfml-*
« Reply #9 on: July 24, 2012, 11:00:01 pm »
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.
SFML / OS X developer

 

anything