Is the following error message correct? It seems like system() ought
to be in the ::std namespace. What am I missing?
// main.cc
#include <cstdlib>
namespace system { }
$ g++ -ansi -pedantic -Wall -c main.cc
main.cc:3: error: 'namespace system { }' redeclared as different
kind of symbol
/usr/include/stdlib.h:738: error: previous declaration of 'int
system(const char*)'
make: *** [main.o] Error 1
My current work-around is an unnamed "wrapper" namespace:
namespace { namespace system { } }
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus