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

Author Topic: MinGW on linux when looking through includes cant find Config.hpp  (Read 3314 times)

0 Members and 5 Guests are viewing this topic.

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
I seriously dont know what is wrong here. The error is simple the following:
'fatal error: SFML/Config.hpp: No such file or directory'
I have included every library file for windows (building for linux using standard -l commands works) and pointed the compiler to it
I use makefiles if that helps

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #1 on: October 20, 2024, 11:12:26 pm »
The SFML headers can't find SFML/Config.hpp.
Check that the Config.hpp header exists at <path to SFML include dir>/SFML.

What does "I have included every library file for windows" mean exactly?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #2 on: October 21, 2024, 04:42:48 pm »
It exists where it should
By that i mean i used -L for every library file

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #3 on: October 21, 2024, 06:13:33 pm »
Here's the structure of the project, sorry for not including it sooner

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #4 on: October 21, 2024, 07:30:36 pm »
Oh and when i meant it cant find the header file i meant System.hpp cant find Config.hpp, main.cpp finds config just fine

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #5 on: October 21, 2024, 11:32:20 pm »
Are you telling your compiler, where to find header files with -I?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #6 on: October 22, 2024, 02:54:00 pm »
Yes, i am, and it still doesn't work. Also, g++ for linux completely finds the headers from system, but mingw doesnt.
« Last Edit: October 22, 2024, 03:04:15 pm by troliface »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #7 on: October 22, 2024, 04:41:27 pm »
Can you provide the full build command?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #8 on: October 23, 2024, 04:14:22 pm »
Here it is!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #9 on: October 23, 2024, 10:39:13 pm »
Have you ever looked at the build command that this make file generates?

You shouldn't be adding header files to the compilation step.
Header files are only included, only source files are "compiled".
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #10 on: October 24, 2024, 12:57:52 pm »
So i should use -c instead of compiling all at once?

troliface

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MinGW on linux when looking through includes cant find Config.hpp
« Reply #11 on: October 24, 2024, 01:03:50 pm »
That was the issue! I'll open a new forum post if i find anything else, but thanks!

 

anything