Opened 18 years ago

Closed 15 years ago

#348 closed Support Requests (invalid)

program_options bug?

Reported by: nobody Owned by: Vladimir Prus
Milestone: Component: None
Version: None Severity: Showstopper
Keywords: Cc:

Description

I use Borland C++ 6 under Windows and I am trying to
use program_options library.
It seems that if I add a nonhandled parameter to
command line the program hangs.

For example using first.cpp and adding --unhandled to
command line.

in parsers.hpp:

    template<class charT>    
    basic_parsed_options<charT>
    basic_command_line_parser<charT>::run() const
    {
        // Presense of parsed_options ->
wparsed_options conversion
        // does the trick.

==== HERE! ===>  return basic_parsed_options<charT>(

            common_command_line_parser::run());
    }

thanks

Change History (3)

comment:1 by Vladimir Prus, 15 years ago

Resolution: Nonewontfix
Severity: Showstopper
Status: assignedclosed

The 'first' example works fine for me on gcc, so I'd expect a borland-specific bug. Given that CBuilder6 was followed by at least 2 other releases from borland, I'm not going to look into this bug myself

comment:2 by Felipe Navarro <fnavarrov@…>, 15 years ago

Resolution: wontfix
Status: closedreopened

Vladimir,

I'm using two diferents versions of gcc:

-gcc version 4.1.2 20061115 (prerelease) (SUSE Linux) -gcc version 4.0.1 (Apple Computer, Inc. build 5367)

But I haven't look compiling the 'first' example. Can you give me some directions?

Thanx, Felipe.

PS:I'm using gcc -o first first.cpp

comment:3 by Vladimir Prus, 15 years ago

Resolution: invalid
Status: reopenedclosed

You've failed to provide the error messages you get. Your command line goes not link to the program_options library. On Linux, you'd need -L <path-to-boost-libraries> -lboost_program_options<variant> options, where <variant> part is described in the getting started guide.

Note: See TracTickets for help on using tickets.