compiling Boost linked libraries (Ubuntu)
Posted
by
Adam Greenhall
on Stack Overflow
See other posts from Stack Overflow
or by Adam Greenhall
Published on 2012-06-20T21:13:23Z
Indexed on
2012/06/20
21:15 UTC
Read the original article
Hit count: 119
I installed Boost via sudo apt-get install libboost-all-dev
on the most recent version of Ubuntu. Now I want to compile a project that uses the Boost.Serialization
library, which needs to be linked.
I've tried many variants of the following, without success:
gcc -I /usr/lib code.cpp -o compiled /usr/lib/libboost_serialization.a
and
gcc -I /usr/lib code.cpp -o compiled -l libboost_serialization
The error message is:
error: ‘split_member’ is not a member of ‘boost::serialization
`
What am I missing?
© Stack Overflow or respective owner