error LNK2005: “public: class std::vector

VS2010:error LNK2005: "public: class std::vector<class std::vector<class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> 

如:

     


Reason:

都说这不是版本的问题,这是2010的问题。个人觉得是版本环境导致的STL兼容问题。

Solution:

方法一:不要用vs;

方法二:在link commandline加上一行”  /FORCE:MULTIPLE  “点击” OK “就解决了;简单说就是VS10的STL从import变成static了。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章