Author Topic: Fatal error no such file or directory  (Read 1742 times)

Offline Arm9292

  • Single posting newcomer
  • *
  • Posts: 2
Fatal error no such file or directory
« on: December 09, 2021, 03:31:53 am »

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

Offline AndrewCot

  • Regular
  • ***
  • Posts: 341
Re: Fatal error no such file or directory
« Reply #1 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

Offline Arm9292

  • Single posting newcomer
  • *
  • Posts: 2
Re: Fatal error no such file or directory
« Reply #2 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)) ===|

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 929
Re: Fatal error no such file or directory
« Reply #3 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)

Offline AndrewCot

  • Regular
  • ***
  • Posts: 341
Re: Fatal error no such file or directory
« Reply #4 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.