错误LNK1104:无法打开文件'libboost_serialization-vc110-mt-gd-1_53.lib' [英] error LNK1104: cannot open file 'libboost_serialization-vc110-mt-gd-1_53.lib'

查看:627
本文介绍了错误LNK1104:无法打开文件'libboost_serialization-vc110-mt-gd-1_53.lib'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Boost序列化来创建一个简单的XML文件,但是在调试时,出现此错误 错误LNK1104:无法打开文件'libboost_serialization-vc110-mt-gd-1_53.lib'" 我已尝试按照

I use Boost serialization to create a simple XML file, but when debug, I got this error "error LNK1104: cannot open file 'libboost_serialization-vc110-mt-gd-1_53.lib'" I have tried to fixed my problem followed the answer in this question

但是在我的Boost文件夹中找不到文件夹"stage",我从下载了Boost这里

but I can't find the folder "stage" in my Boost folder, I downloaded Boost from here

推荐答案

在我的情况下,我使用的是boost 1.55,其中serialization是纯模板模块.在模块文件夹中只有一些hpp文件.但是,我仍然遇到相同的错误.

In my case, I'm using boost 1.55, in which serialization is a pure template module. There are only some hpp files in the module folder. However, I still get the same error.

我的解决方法是

#define BOOST_ALL_NO_LIB

代码中的

.现在一切正常.

in the code. Now everything goes fine.

这篇关于错误LNK1104:无法打开文件'libboost_serialization-vc110-mt-gd-1_53.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆