[Boost-serialization] undefined reference error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Boost-serialization] undefined reference error

Boost - Users mailing list
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 mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users