【发布时间】:2010-11-17 08:17:45
【问题描述】:
我在编译项目时出错。 我正在尝试使用 Visual Studio 链接到我在 Windows 上拥有的库。
当尝试创建 obkect (with new) 时,我收到以下错误:
错误 2 错误 LNK2005: "public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (??1?$basic_string@DU?$char_traits @D@std@@V?$allocator@D@2@@std@@QAE@XZ) 已在 RMLibV053.lib(Inifile.obj) msvcprtd.lib 中定义
我使用了#ifndef 我使用了禁用警告
【问题讨论】:
-
您是否修改了编译器路径或添加了额外的库?
标签: c++ visual-studio