Opened 13 years ago

Closed 13 years ago

#3802 closed Bugs (fixed)

link error happens to demo_portable_archive

Reported by: anonymous Owned by: Robert Ramey
Milestone: Boost 1.42.0 Component: serialization
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

I download boost 1.41.0 src to Debian sid. After compiling and installing the library successfully, I tried to build the demo_portable_binary which locates libs/serialization/example.

compilation is ok, but I'm unable to link it.

link cmd:

g++ -o /tmp/demo_portable_archive /tmp/portable_binary_*.o /tmp/demo_portable_archive.o -lboost_serialization -L/usr/local/lib

Here is the error msg:

demo_portable_archive.cpp:(.text._ZNK5boost7archive6detail15common_iarchiveI24portable_binary_iarchiveE4findERKNS_13serialization18extended_type_infoE[boost::archive::detail::common_iarchive<portable_binary_iarchive>::find(boost::serialization::extended_type_info const&) const]+0xd): undefined reference to `boost::archive::detail::archive_serializer_map<portable_binary_iarchive>::find(boost::serialization::extended_type_info const&)'

collect2: ld returned 1 exit status

Change History (2)

comment:1 by Steven Watanabe, 13 years ago

Component: Noneserialization
Owner: set to Robert Ramey

comment:2 by Robert Ramey, 13 years ago

Resolution: fixed
Status: newclosed

I believe this has been fixed in 1.42

I did build and run this with the latest version and it did run successfully.

However it did fail to link with MSVC when built to use the DLL version of the library. This is due to conflicts regarding import/export of declarations.

Robert Ramey

Note: See TracTickets for help on using tickets.