3
votes

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

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

2
You have to build the Boost libraries first. I suggest you read the Getting started guide. - Some programmer dude

2 Answers

3
votes

You need to build the boost libraries first.

Open a console and go to the root folder of boost. Then type

bootstrap

and then type

b2 variant=debug,release link=static runtime-link=static

for building debug and release configuration for static linking. You can find more information in the Getting Started Guide

3
votes

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.

My solution is to

#define BOOST_ALL_NO_LIB

in the code. Now everything goes fine.