Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-01-23 17:15:35


Michael Shapiro wrote:
> I am having problems linking a program using the serialization
> library.
>
> I have made a small program, considerably simpler than the demo.cpp
> listed at
> http://www.boost.org/libs/serialization/doc/tutorial.html
> and I have also tried linking demo.cpp itself.
>
> My hpp files are in
> /home/mshapiro.local/boost/include/boost-1_32/boost/
>
> My libraries are in
> /home/mshapiro.local/boost/lib/
>
> I have tried linking this code with gcc 3.4.5 on a linux machine using
>
> gcc -I/home/mshapiro.local/boost/include/boost-1_32/ \
> -L/home/mshapiro.local/boost/lib/ \
> -lboost_serialization-gcc \
> demo.cpp

I see no reference to a specific library here - could a gcc expert comment
here?

On my system - windows XP professional the library name is

libboost_serialization-gcc-d-1_33_1

So I would expect to use that as the argumetn for the -l switch above. It
might
be different in your case.

Robert Ramey


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net