The ".hpp" suffix is not recognized and requires additional "-x c++-header" specification.
[EMAIL PROTECTED]:~/code/test$ g++ -c -v test.hpp Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.1.1/configure --with-languages=c,c++,java Thread model: posix gcc version 4.1.1 g++: test.hpp: linker input file unused because linking not done [EMAIL PROTECTED]:~/code/test$ g++ -c -x c++-header test.hpp [EMAIL PROTECTED]:~/code/test$ -- Summary: Missing ".hpp" suffix handling as c++-headers Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: _vi at list dot ru GCC build triplet: Any GCC host triplet: Any GCC target triplet: Any http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29222