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

Author Topic: Can't execute simple SFML program(CodeLite IDE)  (Read 2605 times)

0 Members and 1 Guest are viewing this topic.

MDtox

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Can't execute simple SFML program(CodeLite IDE)
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Can't execute simple SFML program(CodeLite IDE)
« Reply #1 on: June 10, 2019, 06:00:00 pm »
#include <include/SFML/Graphics.hpp> is obviously wrong, as you can see from any SFML example. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MDtox

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Can't execute simple SFML program(CodeLite IDE)
« Reply #2 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  :(

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Can't execute simple SFML program(CodeLite IDE)
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything