program_options error in 1.33.1

Hi boosters, i have switch my code from 1.33 to boost 1.33.1 and the program_options is not working anymore. The first program in the example folder have the same error on my maschine. Here my work: System: Suse Linux with 2.6.5-7.111.5-default #1 Wed Nov 17 11:08:17 UTC 2004 i686 athlon i386 GNU/Linux
g++ -o first first.o -L/usr/lib/ -lboost_program_options-gcc
gdb backtrace output: Reading symbols from /usr/local/lib/libboost_program_options-gcc-1_33_1.so.1.33.1...done. Loaded symbols for /usr/local/lib/libboost_program_options-gcc-1_33_1.so.1.33.1 Reading symbols from /usr/lib/libstdc++.so.5...done. Loaded symbols for /usr/lib/libstdc++.so.5 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0x400f889d in std::basic_string<char, std::char_traits<char>, std::allocator<char>
::basic_stri ng () from /usr/lib/libstdc++.so.5 (gdb) backtrace #0 0x400f889d in std::basic_string<char, std::char_traits<char>, std::allocator<char> ::basic_stri ng () from /usr/lib/libstdc++.so.5 #1 0x080503f7 in _Construct<boost::program_options::option, boost::program_options::basic_option<ch ar> > (__p=0x8057198, __value=@0x80573b8) at stl_construct.h:78 #2 0x0805059e in std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<boost::program_options: :basic_option<char> const*, std::vector<boost::program_options::basic_option<char>, std::allocator<b oost::program_options::basic_option<char> > > >, boost::program_options::basic_option<char>*> ( __first=Variable "__first" is not available. ) at stl_iterator.h:602 #3 0x08050abd in std::vector<boost::program_options::basic_option<char>, std::allocator<boost::prog ram_options::basic_option<char> > >::operator= (this=0xbfffed70, __x=@0xbfffed50) at stl_uninitialized.h:109 #4 0x08052b7f in boost::program_options::basic_command_line_parser<char>::run (this=0xfffffff4) at parsers.hpp:84 #5 0x08053c9a in boost::program_options::parse_command_line<char> (argc=0, argv=0x0, desc=@0x0, style=-12, ext= {<boost::function_base> = {manager = 0, functor = {obj_ptr = 0x0, const_obj_ptr = 0x0, func_pt r = 0, data = ""}}, static args = <optimized out>, static arity = <optimized out>, invoker = 0}) at function_base.hpp:407 #6 0x0804c95e in main (ac=0, av=0x0) at function_template.hpp:278
Whats wrong with the parse_command funktion? Thanks in advance, Tino ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
participants (1)
-
Tino S.