Boost logo

Boost Users :

Subject: [Boost-users] Compiling boost with optional _GLIBCXX_DEBUG support
From: Jayesh Badwaik (public_at_[hidden])
Date: 2017-10-06 13:48:42


Hi,

How to compile boost so that compilation of user programs both with
_GLIBCXX_DEBUG and without _GLIBCXX_DEBUG is supported?

Currently, if I compile boost with _GLIBCXX_DEBUG then I cannot compile
my programs without this flag, and vice versa. The actual error comes
from program_options attached in a file.

I gather from the interweb that the error is well known, however, I
could not find instructions to compile boost such that both options are
supported.

-- 
Cheers
Jayesh Badwaik
https://www.jayeshbadwaik.in

/tmp/cc8tmRGO.ltrans0.ltrans.o: In function `__base_ctor ':
/usr/include/boost/program_options/detail/parsers.hpp:44: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::__debug::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
/tmp/cc8tmRGO.ltrans0.ltrans.o: In function `xparse':
/usr/include/boost/program_options/detail/value_semantic.hpp:184: undefined reference to `boost::program_options::validate(boost::any&, std::__debug::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)'
/tmp/cc8tmRGO.ltrans0.ltrans.o:(.data.rel.ro+0xb8): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::__debug::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const'




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