SFML community forums

Help => Graphics => Topic started by: georgeziozas on April 10, 2016, 05:32:16 pm

Title: SFML configuration to code::blocks error.
Post by: georgeziozas 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 (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/9f570f5b8cd8c15104e8e5bd3816d0be)
https://gyazo.com/3f1cfb7c97ce838a4546dce88c0a0548 (https://gyazo.com/3f1cfb7c97ce838a4546dce88c0a0548)
https://gyazo.com/e7d3da418f5c527a1f0f31a4c22f265a (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
Title: Re: SFML configuration to code::blocks error.
Post by: Mr_Blame on April 10, 2016, 08:49:41 pm
Make shure that you give correct path to SFML include directory.
Title: Re: SFML configuration to code::blocks error.
Post by: eXpl0it3r on April 10, 2016, 10:18:59 pm
Is C:\smfl\include really a correct path?
Title: Re: SFML configuration to code::blocks error.
Post by: georgeziozas 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
Title: Re: SFML configuration to code::blocks error.
Post by: georgeziozas on April 10, 2016, 10:27:02 pm
Is C:\smfl\include really a correct path?
i corrected it but still the problem remains
Title: Re: SFML configuration to code::blocks error.
Post by: eXpl0it3r on April 10, 2016, 10:30:29 pm
And what does the C:\sfml\include directory contain?
Did you do a clean rebuild?
Title: Re: SFML configuration to code::blocks error.
Post by: georgeziozas 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 (https://gyazo.com/2aeadfad1ce84e6b2d85376c465ac2c4)
Title: Re: SFML configuration to code::blocks error.
Post by: eXpl0it3r 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. ;)
Title: Re: SFML configuration to code::blocks error.
Post by: georgeziozas 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
Title: Re: SFML configuration to code::blocks error.
Post by: georgeziozas on April 10, 2016, 11:17:09 pm
i followed tihs tutorial on youtube: https://www.youtube.com/watch?v=ZqjNOd1UYtE (https://www.youtube.com/watch?v=ZqjNOd1UYtE)

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.
Title: Re: SFML configuration to code::blocks error.
Post by: georgeziozas on April 11, 2016, 03:11:52 am
SOLVED
Title: Re: SFML configuration to code::blocks error.
Post by: Mr_Blame on April 11, 2016, 09:00:08 am
What did you do?