User forums > Help

Fatal error no such file or directory

(1/1)

Arm9292:

downloaded and put into correct spot (I think) but doesn't work

AndrewCot:
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

Arm9292:
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)) ===|

Miguel Gimenez:
Move std_lib_facilities.h to the folder where main.cpp is (C:\Users\Owner\Desktop\Stuff\Programs\hello_world)

AndrewCot:
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.

Navigation

[0] Message Index

Go to full version