宣佈我有以下代碼:爲什麼不串範圍
#include <string>
#include <boost/thread/tss.hpp>
static boost::thread_specific_ptr<string> _tssThreadNameSptr;
我收到以下錯誤
g++ -c -I$BOOST_PATH tssNaming.h
tssNaming.h:7: error: 'string' was not declared in this scope
但我包括我的#include
字符串。
之前的字符串 – innochenti
可能重複添加的std :: [C++錯誤: '串' 尚未聲明】(http://stackoverflow.com/questions/2890860/c-錯誤字符串還沒有被宣佈) – juanchopanza