Boost logo

Boost Users :

From: Jeffrey Holle (jeff.holle_at_[hidden])
Date: 2005-01-06 19:08:02

I have a similiar linux system to what you describe.

I found that I needed to modify the Jamfile in
$BOOST_ROOT/libs/serialization/example in order to build these files.
Two changes:
  1. Added demo_pimpl_A.cpp
  2. Added libpthread.a

The modified Jamfile is included.

Maximilian Wilson wrote:
> I'm using gcc v 3.3, Red Hat Linux (not sure what version), and Boost
> 1.32. I'm trying to learn the serialization library, using the demo
> program from .
> I have had a little bit of trouble figuring out the boost install
> procedure for this library but I think I finally did it with:
> bjam "-sTOOLS=gcc" install --libdir=/home/max/boost
> --includedir=/home/max/boost -with-serialization
> But when I execute "g++ -I/home/max/boost/boost-1_32 -L/home/max/boost
> demo.cpp demo.o" I get a bunch of linker errors. I'm pretty sure I've
> messed up this install procedure somewhere, and the Boost docs have
> tentalizing references to serialization not having "automatic
> linking," but I can't figure out where to go next. What am I doing
> wrong?
> Max Wilson

# Boost serialization Library Build Jamfile
# (C) Copyright Robert Ramey 2002-2004.
# Use, modification, and distribution are subject to the
# Boost Software License, Version 1.0. (See accompanying file
# LICENSE_1_0.txt or copy at
# See for the library home page.

subproject libs/serialization/example ;

rule demo-bsl-build ( demo-name )
    exe $(demo-name)
        : # sources
        : # requirements
        : # default build

demo-bsl-build demo ;
demo-bsl-build demo_auto_ptr ;
demo-bsl-build demo_exception ;
demo-bsl-build demo_fast_archive ;
demo-bsl-build demo_pimpl ;
demo-bsl-build demo_portable_archive ;
demo-bsl-build demo_shared_ptr ;
demo-bsl-build demo_xml ;
demo-bsl-build demo_xml_save ;
demo-bsl-build demo_xml_load ;

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