Jonas Karlsson wrote:
I have problem building cpp with my installation of gcc 4.3.0, which I built from source. The specific problem in this case is that it can't find the system wctype.h, but I don't know if it applies to other system header files. This is using GoboLinux, so paths may differ from "normal" systems, but files should be available where expected. Header files is found in /System/Links/Headers (as symbolic links) and wctype.h (the file g++ can't find) is located there: $ls -l /System/Links/Headers/wctype.h
$cat something.cpp #include <cwctype>
In file included from something.cpp:1: /Programs/GCC/Current/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cwctype:51:25: error: wctype.h: No such file or directory
You're telling g++ to look for header files only in its own system include paths. It's set up this way to allow multiple compilers to coexist. If you have headers which work with g++, put them in the paths where you have configured your g++ to search for them.