SFML community forums

Help => General => Topic started by: MDtox on June 10, 2019, 05:30:31 pm

Title: Can't execute simple SFML program(CodeLite IDE)
Post by: MDtox on June 10, 2019, 05:30:31 pm
C:\Windows\system32\cmd.exe /C mingw32-make.exe -j 8 -e -f  Makefile
----------Building project:[ sfml-cppTest - Debug ]----------
mingw32-make[1]: Entering directory 'C:/Users/User/Desktop/Testcpp/sfml-cppTest'
g++  -c  "C:/Users/User/Desktop/Testcpp/sfml-cppTest/main.cpp" -g -O0 -Wall -DSFML_STATIC  -o ./Debug/main.cpp.o -I. -IC:\SFML-2.4.1\include
C:/Users/User/Desktop/Testcpp/sfml-cppTest/main.cpp:1:37: fatal error: include/SFML/Graphics.hpp: No such file or directory
 #include <include/SFML/Graphics.hpp>
                                     ^
compilation terminated.
mingw32-make[1]: *** [Debug/main.cpp.o] Error 1
sfml-cppTest.mk:97: recipe for target 'Debug/main.cpp.o' failed
mingw32-make[1]: Leaving directory 'C:/Users/User/Desktop/Testcpp/sfml-cppTest'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====

I tried to change versions from 2.5.1 to 2.4.1. Windows 10 (64 bit), also downloaded GCC 4.9.2 TDM (SJLJ) - 64 Bit. Help me please.
Title: Re: Can't execute simple SFML program(CodeLite IDE)
Post by: eXpl0it3r on June 10, 2019, 06:00:00 pm
#include <include/SFML/Graphics.hpp> is obviously wrong, as you can see from any SFML example. ;)
Title: Re: Can't execute simple SFML program(CodeLite IDE)
Post by: MDtox on June 10, 2019, 06:03:10 pm
#include <include/SFML/Graphics.hpp> is obviously wrong, as you can see from any SFML example. ;)
I already tried #include <SFML/Graphics.hpp>, it also doesn't work  :(
Title: Re: Can't execute simple SFML program(CodeLite IDE)
Post by: eXpl0it3r on June 10, 2019, 07:57:21 pm
Not 100% sure, but I think the include directory specifier -I needs to come before the main.cpp source file.