में स्ट्रिंग घोषित नहीं किया गया है मैं निम्नलिखित कोड है:क्यों गुंजाइश
#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 :: जोड़ने [सी ++ त्रुटि: 'स्ट्रिंग' घोषित नहीं किया गया है] (http://stackoverflow.com/questions/2890860/c- त्रुटि-स्ट्रिंग-नहीं-घोषित नहीं किया गया है) – juanchopanza