Package: boost
Version: Debug libs provided are incompatible with _GLIBCXX_DEBUG
Severity: normal

Attemping to compile code that links against external boost libraries fails when
you turn on the checked STL implementation (-D_GLIBCXX_DEBUG) (it does not link
for either the normal or debug versions of the libraries):

$ g++ --version
i486-linux-gnu-g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
$ g++ -D_GLIBCXX_DEBUG first.cpp 
/usr/lib/debug/usr/lib/libboost_program_options-gcc-mt-1_33_1.so.1.33.1
tmp/ccZa5s2I.o: In function 
`boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int,
 char**)':
first.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC1EiPPc[boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int,
 char**)]+0x4f): undefined reference to 
`boost::program_options::detail::cmdline::cmdline(__gnu_debug_def::vector<std::basic_string<char,
 std::char_traits<char>, std::allocator<char> >, 
std::allocator<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > > > const&)'
/tmp/ccZa5s2I.o:(.rodata._ZTVN5boost15program_options11typed_valueIicEE[vtable 
for boost::program_options::typed_value<int, char>]+0x18): undefined reference 
to 
`boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&,
 __gnu_debug_def::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
collect2: ld returned 1 exit status

(where first is from 
/usr/share/doc/libboost-doc/examples/libs/program_options/example/first.cpp)

It would be nice if there was a version available that was compatible
with this flag.

Thanks,

Euan.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to