$ cat test.cpp #include <cstdlib> $ g++ -c -isystem /usr/include test.cpp In file included from test.cpp:1: /usr/include/c++/4.3/cstdlib:73:25: error: stdlib.h: No such file or directory ...
This happens on two different system with 4.3.1 and 4.3.2. See also http://gcc.gnu.org/ml/gcc-help/2008-10/msg00338.html -- Summary: System header files not found once -isystem /usr/include is used Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jensseidel at users dot sf dot net GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet: i486-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38000