[pkg-boost-devel] Bug#345110: libboost-serialization-dev:
-lboost_serialization must come after an object file in
linker command
Bryan Donlan
bdonlan at gmail.com
Thu Dec 29 02:09:48 UTC 2005
Package: libboost-serialization-dev
Version: 1.33.0-6
Severity: normal
If I attempt to link a program using boost-serialization, and put
-lboost_serialization before any object or source files on the g++
command line, the linker fails to use the boost-serialization archive
while linking. If I move the serialization library to the end of the
command line, it works.
For example, the following fails:
g++ -DCV=0 -otest -lboost_serialization tools/serialtest.cpp -I.
But this works:
g++ -DCV=0 -otest tools/serialtest.cpp -lboost_serialization -I.
Toolchain versions:
||/ Name Version Description
+++-==============-==============-============================================
ii binutils 2.16.1cvs20051 The GNU assembler, linker and binary utiliti
ii g++ 4.0.2-2 The GNU C++ compiler
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.4+bd1-reiserfs
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libboost-serialization-dev depends on:
ii libboost-dev 1.33.0-6 Boost C++ Libraries development fi
libboost-serialization-dev recommends no packages.
-- no debconf information
More information about the pkg-boost-devel
mailing list