今天編譯一個C++工程,錯誤提示
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cliext\xutility(6): fatal error C1189: #error : STL/CLR can be used only in code compiled /clr, clr:pure, or /clr:safe
哪位大神知道怎么解決,急!急!急!
uj5u.com熱心網友回復:
stl和clr托管代碼不能混用,你可以只使用stl資料型別,using namespace std解決的辦法 如:
頭檔案改成 <list>
然后在list前加上命名空間 std::
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/90226.html
標籤:基礎類
下一篇:[C++ Error] _streambuf.h(76): E2450 Undefined structure 'locale'
