Re: g++ can't build "Hello World" programm
Hi,
Evgeny wrote:
> any
> "bits/locale.h" among indlude files that you listed have already existed in
> my system. but g++ continue give me error message that there is no such file
> or directory
What do you get from
g++ -o test -H test.cpp
If i rename my local
/usr/include/x86_64-linux-gnu/bits/locale.h
then i get exactly your error message:
....... /usr/include/locale.h
........ /usr/lib/gcc/x86_64-linux-gnu/4.9/include/stddef.h
In file included from /usr/include/c++/4.9/clocale:42:0,
from /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++locale.h:41,
from /usr/include/c++/4.9/bits/localefwd.h:40,
from /usr/include/c++/4.9/ios:41,
from /usr/include/c++/4.9/ostream:38,
from /usr/include/c++/4.9/iostream:39,
from test.cpp:1:
/usr/include/locale.h:29:25: fatal error: bits/locale.h: No such file or directory
My g++ version is like yours
g++ (Debian 4.9.2-10) 4.9.2
> -I/way-to-the-missing-lib,
The path up to but not including "bits" idid not help ?
Like:
-I /usr/include/x86_64-linux-gnu/
> What can it be?
Is the the file name invisibly altered ?
What do you get when explicitely asking for its path:
ls -ld '/usr/include/x86_64-linux-gnu/bits/locale.h'
Have a nice day :)
Thomas
Reply to: