http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49745
Summary: error: ‘int truncate’ redeclared as different kind of symbol Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: mathieu.malate...@gmail.com Hi, g++ pollutes the global namespace. The following does not compile with G++ 4.4.5: #include <iostream> int truncate = 0; int main() { return 0; } If fails with: t.cxx:2: error: ‘int truncate’ redeclared as different kind of symbol /usr/include/unistd.h:998: error: previous declaration of ‘int truncate(const char*, __off_t)’ Thanks !