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

Author Topic: SFML configuration to code::blocks error.  (Read 4688 times)

0 Members and 1 Guest are viewing this topic.

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
SFML configuration to code::blocks error.
« on: April 10, 2016, 05:32:16 pm »
hello, this is my first post here , i tried to follow the link
 http://www.sfml-dev.org/tutorials/2.3/start-cb.php
to install sfml correctly but it seems something is wrong..
After i did all the steps i try to create my first program and this error appears:
'fatal error: SFML/Graphics.hpp: No such file or directory'

Pictures of my project build:
https://gyazo.com/9f570f5b8cd8c15104e8e5bd3816d0be
https://gyazo.com/3f1cfb7c97ce838a4546dce88c0a0548
https://gyazo.com/e7d3da418f5c527a1f0f31a4c22f265a
debug and release are empty, do i need to put something there too?

i really dont understand how all these linkings work .. i just try to follow the link through..
any help would be apreciated. thanks

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #1 on: April 10, 2016, 08:49:41 pm »
Make shure that you give correct path to SFML include directory.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML configuration to code::blocks error.
« Reply #2 on: April 10, 2016, 10:18:59 pm »
Is C:\smfl\include really a correct path?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #3 on: April 10, 2016, 10:26:41 pm »
Make shure that you give correct path to SFML include directory.
i corrected the include path to: C:\sfml\include\SFML
because at the include is and SFML folder so..
still the problem remains

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #4 on: April 10, 2016, 10:27:02 pm »
Is C:\smfl\include really a correct path?
i corrected it but still the problem remains

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML configuration to code::blocks error.
« Reply #5 on: April 10, 2016, 10:30:29 pm »
And what does the C:\sfml\include directory contain?
Did you do a clean rebuild?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #6 on: April 10, 2016, 10:43:45 pm »
And what does the C:\sfml\include directory contain?
Did you do a clean rebuild?
here is what it contains https://gyazo.com/2aeadfad1ce84e6b2d85376c465ac2c4

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML configuration to code::blocks error.
« Reply #7 on: April 10, 2016, 10:47:26 pm »
Then you have modified the directory. ::)
The include directory should contain another directory called SFML which then holds the content from that last screenshot.

Don't randomly move things around and then wonder why it doesn't work. Also try to understand what the problem is. I mean if it says "not found" it's pretty obvious where to look. And if you don't understand what #include does, then you might want to first go back a few steps and read a bit more on C++. It's a though language and you're required to know quite a bit about it if you want to use SFML. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #8 on: April 10, 2016, 11:10:12 pm »
Then you have modified the directory. ::)
The include directory should contain another directory called SFML which then holds the content from that last screenshot.

Don't randomly move things around and then wonder why it doesn't work. Also try to understand what the problem is. I mean if it says "not found" it's pretty obvious where to look. And if you don't understand what #include does, then you might want to first go back a few steps and read a bit more on C++. It's a though language and you're required to know quite a bit about it if you want to use SFML. ;)

it contains an SFML folder before these files in the snapshot, also i know what include means, when i said i dont understand what i need to do i meant that i dont understand 100% what i have to do to make it work and most of the steps i watched them on youtube.. nvm..

After i watched another video i finally find no problems at the code...
it asks me if i want to build the project and i say 'yes'.. after that it freezes and asks me again...
nvm i will try to fix it ..
you helped enough already

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #9 on: April 10, 2016, 11:17:09 pm »
i followed tihs tutorial on youtube:

atm when i press to run the code the only error is :
 mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++'
if i remove it then when i rerun it gives me 20 errors or more.

georgeziozas

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #10 on: April 11, 2016, 03:11:52 am »
SOLVED

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: SFML configuration to code::blocks error.
« Reply #11 on: April 11, 2016, 09:00:08 am »
What did you do?

 

anything