boost1.55.0在vs2013上编译序列化库失败的解决方法
2014-05-21 22:05
387 查看
之前一直没有使用boost序列化的库,所以一直没法发现boost.155.0序列化库在vs2013下面编译通不过。
今天打算用一下 居然报 error LNK1104: cannot open file 'libboost_serialization-vc120-mt-gd-1_55.lib'
其实修复方法很简单在 boost/archive/iterators/transform_width.h的文件中添加一句 #include <algorithm> 即可。如下
然后重新编译下boost.155.0。 OK ~ 编译通过^_^!
今天打算用一下 居然报 error LNK1104: cannot open file 'libboost_serialization-vc120-mt-gd-1_55.lib'
其实修复方法很简单在 boost/archive/iterators/transform_width.h的文件中添加一句 #include <algorithm> 即可。如下
#include <algorithm> //在此添加 #include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME & PTFO #include <boost/serialization/pfto.hpp> #include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/iterator_traits.hpp>
然后重新编译下boost.155.0。 OK ~ 编译通过^_^!
相关文章推荐
- vc6编译boost1.33.0版本正则库失败的解决方法
- Solaris编译Boost生成so文件出错:failed gcc.link.dll解决方法
- vs2010编译vtk5.8.0 release版本失败的解决方法
- 关于Ubuntu 14.04 x64 安装 Vmware 10 x64 编译 vmnet失败的解决方法
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- 手把手教你:Boost编译使用报错的解决方法
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- Latex下使用IEEEtran模板编译bib失败报错的解决方法
- boost编译很慢的解决方法
- Microsoft Visual Studio 2010 编译出现“GenerateResource”任务意外失败的解决方法
- ubuntu下编译busybox失败的一种解决方法
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- CMake编译OGRE source code时Boost的一些问题解决方法
- Hadoop2.2.0在Ubuntu编译失败解决方法
- 32位Linux编译redis失败解决方法:zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4`
- ant编译失败Error starting modern compiler解决方法
- Win7下MingW编译Boost Asio程序的错误解决方法
- C#对象序列化失败解决方法(很牛逼)
- CentOS 6.5内核编译失败解决方法