News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Fatal error no such file or directory

Started by Arm9292, December 09, 2021, 03:31:53 AM

Previous topic - Next topic

Arm9292


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

AndrewCot


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.