在evc4中使用map出错???
随便新建一个工程,在合适的位置添加以下代码,
#include <map>
using namespace std;
map<int, int> mp;
仅仅声明了一个map对象,编译就会报错!
123View.obj : error LNK2019: unresolved external symbol "public: __thiscall std::_Lockit::_Lockit(void)" (??0_Lockit@std@@QAE@XZ) referenced in function "public: __thiscall std::_Tree<int,struct std::pair<int const ,int>,struct std::map<int,int,stru
ct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::allocator<int> >::~_Tree<int,struct std::pair<int const ,int>,struct std::map<int,int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,
class std::allocator<int> >(void)" (??1?$_Tree@HU?$pair@$$CBHH@std@@U_Kfn@?$map@HHU?$less@H@std@@V?$allocator@H@2@@2@U?$less@H@2@V?$allocator@H@2@@std@@QAE@XZ)