Boost logo

Boost Users :

Subject: [Boost-users] [BGL] adjacency_list.hpp requires to link with serialization lib in 1.44?
From: Oliver Koenig (koenig_at_[hidden])
Date: 2010-08-18 09:09:42

when trying to update Boost from 1.43 to 1.44 in our code we noticed
that in 1.44 we need to link to the serialization lib as soon as
boost/graph/adjacency_list.hpp is included.
Is this correct behavior or is this a bug?

To reproduce this it is sufficient to build the following test program
hello_adjacency_list.cpp (tested with MSVC-9.0):

#include <iostream>
#include <boost/graph/adjacency_list.hpp>

int main(){

   std::cout << "hello adjacency_list\n";

   return 0;

With the boost build rule
"exe hello_adjacency_list : hello_adjacency_list.cpp ;"
compilation fails with:
LINK : fatal error LNK1104: cannot open file

Using the build rule
"exe hello_adjacency_list : hello_adjacency_list.cpp
  : <link>shared<define>BOOST_SERIALIZATION_DYN_LINK ;"
everything works fine.


Oliver Koenig ETH
Email:       koenig_at_[hidden]
EVEN - Evolutionary Engineering AG
Technoparkstrasse 1
CH-8005 Zurich
Tel  : +41 (0)44 500 93 60
Fax : +41 (0)44 500 93 61
Mail : info_at_[hidden]
WWW  :
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at