Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
MinGW on linux when looking through includes cant find Config.hpp
Print
Pages: [
1
]
Author
Topic: MinGW on linux when looking through includes cant find Config.hpp (Read 3593 times)
0 Members and 2 Guests are viewing this topic.
troliface
Newbie
Posts: 8
MinGW on linux when looking through includes cant find Config.hpp
«
on:
October 20, 2024, 12:49:01 pm »
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
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11033
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?
Logged
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
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
Logged
troliface
Newbie
Posts: 8
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
Logged
troliface
Newbie
Posts: 8
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
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11033
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
?
Logged
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
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
»
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11033
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?
Logged
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
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!
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11033
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".
Logged
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
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?
Logged
troliface
Newbie
Posts: 8
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!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
MinGW on linux when looking through includes cant find Config.hpp
anything