|
Boost Users : |
Subject: [Boost-users] [Boost-serialization] undefined reference error
From: phillip mobley (phillipmobley2_at_[hidden])
Date: 2018-10-19 03:53:33
Hello all,
I ma having a major issue with the boost library. I have been having this
issue for a few days now and I can't seem to figure out what the problem
is.
Basically, I get this error message after my linker:
"undefined reference to
`boost::archive::text_oarchive_impl<boost::archive::text_oarchive>::save(std::string
const&)'"
My complete linker command is as follows:
" -L. -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L/usr/lib/lapack
-lfreetype -lGLEW -llapack -lboost_serialization -lglut -lGL -lGLU
-L/usr/local/lib -pthread -lwx_gtk2u_xrc-3.1 -lwx_gtk2u_stc-3.1
-lwx_gtk2u_richtext-3.1 -lwx_gtk2u_ribbon-3.1 -lwx_gtk2u_propgrid-3.1
-lwx_gtk2u_aui-3.1 -lwx_gtk2u_gl-3.1 -lwx_gtk2u_html-3.1 -lwx_gtk2u_qa-3.1
-lwx_gtk2u_adv-3.1 -lwx_gtk2u_core-3.1 -lwx_baseu_xml-3.1
-lwx_baseu_net-3.1 -lwx_baseu-3.1"
I built Boost 1.64 from the source and kept the default values. I also
built the whole library. My Boost library is built into the /usr/local
folder.
I am pretty sure that I am referencing the linker libraries correctly but I
can't seem to figure out why I would be getting this error message.
Has anyone had an issue similar to this before?
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