【发布时间】:2014-01-29 11:51:44
【问题描述】:
我编写了使用 Fico 的 BCL C++ 库来解决优化问题的程序。当我在 Visual Studio 2012 中使用 /MDd 运行时库编译和运行代码时,一切都编译正常并且程序运行。
我需要能够在无法安装 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 " (??D?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@QBEABDXZ)
当我使用 /MT 运行时库时,我会得到更长的链接器错误列表。
我是使用 C++ 和 Visual Studio 编写和编译代码的新手。我错过了一些明显的东西吗? Fico 软件安装在目标系统上。
【问题讨论】:
标签: c++ visual-studio-2012 linker