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了。


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