namespace issues in c++11?
问题 Can somebody please explain the following: $ cat test.cpp #include <string> std::string div; $ g++ -c test.cpp $ g++ -std=c++11 -c test.cpp test.cpp:2:13: error: 'std::string div' redeclared as different kind of symbol In file included from /usr/include/c++/4.7.1/cstdlib:66:0, from /usr/include/c++/4.7.1/ext/string_conversions.h:37, from /usr/include/c++/4.7.1/bits/basic_string.h:2814, from /usr/include/c++/4.7.1/string:54, from test.cpp:1: /usr/include/stdlib.h:787:14: error: previous