2014-01-29 32 views
0

我編寫的程序使用Fico的BCL C++庫來解決優化問題。當我用/ MDd運行時庫編譯並運行visual studio 2012中的代碼時,一切都編譯好,程序運行。Visual Studios 2012更改運行時庫導致鏈接錯誤,使用C++

我需要能夠在另一臺無法安裝visual studio的機器上運行該程序。當我嘗試編譯我的程序與/ MD運行庫,我得到以下鏈接錯誤:

error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: char const & __thiscall std::_String_const_iterator<class std::_String_val<struct std::_Simple_types<char> > >::operator*(void)const " ([email protected][email protected][email protected]@[email protected]@@[email protected]@@[email protected]@QBEABDXZ) 

當我使用/ MT運行庫,我得到鏈接錯誤的甚至更長的名單。

我是新手,在C++和visual studio中編寫和編譯代碼。我錯過了明顯的東西嗎? Fico軟件安裝在目標系統上。

回答

1

這些錯誤表示您將鏈接到BCL庫的調試版本。

在發佈模式下,與發佈版BCL鏈接。

相關問題