Code::Blocks Forums

User forums => Help => Topic started by: Arm9292 on December 09, 2021, 03:31:53 am

Title: Fatal error no such file or directory
Post by: Arm9292 on December 09, 2021, 03:31:53 am
(https://i.gyazo.com/ac34e425d4345551c5534721b7c7d950.png)
downloaded and put into correct spot (I think) but doesn't work
Title: Re: Fatal error no such file or directory
Post by: AndrewCot on December 09, 2021, 03:56:00 am
We are not mind readers and as such can you please supply the info as per the following guide:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Title: Re: Fatal error no such file or directory
Post by: Arm9292 on December 09, 2021, 04:14:59 am
version 20.03, windows 10, GNU GCC compiler.
try to build and run thus

#include "std_lib_facilities.h"
int main()
{
cout << "Hello, World!\n";
keep_window_open();
return 0;
}

get this
||=== Build: Debug in hello_world (compiler: GNU GCC Compiler) ===|
C:\Users\Owner\Desktop\Stuff\Programs\hello_world\main.cpp|1|fatal error: std_lib_facilities.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Title: Re: Fatal error no such file or directory
Post by: Miguel Gimenez on December 09, 2021, 07:39:44 am
Move std_lib_facilities.h to the folder where main.cpp is (C:\Users\Owner\Desktop\Stuff\Programs\hello_world)
Title: Re: Fatal error no such file or directory
Post by: AndrewCot on December 09, 2021, 07:42:16 am
I think you should read the following first:
https://stackoverflow.com/questions/45877104/is-c-std-lib-facilities-h-still-used

And then if you still want to use it then do as Miguel posted above.