I'm working through the new Stroustrup book, front to back. His hello world program won't compile.
Code:
#include "std_lib_facilities.h"
int main()
{
cout<<"Hello, World!\n";
return 0;
}
Code:
icecube@inferno:~/bjarne$ g++ hello.cpp -o hello
hello.cpp:1:32: error: std_lib_facilities.h: No such file or directory
hello.cpp: In function 'int main()':
hello.cpp:9: error: 'cout' was not declared in this scope
icecube@inferno:~/bjarne$
That header file is in quotes, not these: <> So it's supposed to be in the same directory as my .cpp file? Why would I have that header file there?
I did this:
root@inferno:/home/icecube# find / -name std_lib_facilities.h
root@inferno:/home/icecube#
I don't think that header file even exists on my system. I don't get it, he acts like that header is standard on every system.