我一直在尝试编译一个使用我构建的库的程序。该库编译成功,但我无法使用它编译程序。下面列出了我得到的错误。我觉得我错过了一些愚蠢的小事。 “std::out_of_range”语句仅使用一次,形式为“throw std::out_of_range(“Message”);”并且包含了 stdexcept 头文件。任何帮助都会受到热烈欢迎。谢谢。
fatal error LNK1237: during code generation, compiler introduced reference to symbol public: __thiscall std::out_of_range::out_of_range(class std::out_of_range const &)" … compiled with /GL
最佳答案
尝试按照此处的建议进行编译时删除/GL 选项:
http://msdn.microsoft.com/en-us/library/at5twzkt.aspx
如果这不能解决问题,请发表评论,我可以尝试寻找进一步的解决方案。
关于c++ - MS VC++ 2008 链接器错误 std::out_of_range,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16926417/