Boost C++ Libraries: Ticket #348: program_options bug? https://svn.boost.org/trac10/ticket/348 <pre class="wiki">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&lt;class charT&gt; basic_parsed_options&lt;charT&gt; basic_command_line_parser&lt;charT&gt;::run() const { // Presense of parsed_options -&gt; wparsed_options conversion // does the trick. ==== HERE! ===&gt; return basic_parsed_options&lt;charT&gt;( common_command_line_parser::run()); } thanks </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/348 Trac 1.4.3 Vladimir Prus Fri, 06 Jul 2007 17:28:23 GMT status, resolution changed; severity set https://svn.boost.org/trac10/ticket/348#comment:1 https://svn.boost.org/trac10/ticket/348#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">wontfix</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> 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 </p> Ticket Felipe Navarro <fnavarrov@…> Wed, 10 Oct 2007 13:06:48 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/348#comment:2 https://svn.boost.org/trac10/ticket/348#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">wontfix</span> </li> </ul> <p> Vladimir, </p> <blockquote> <p> I'm using two diferents versions of gcc: </p> </blockquote> <p> -gcc version 4.1.2 20061115 (prerelease) (SUSE Linux) -gcc version 4.0.1 (Apple Computer, Inc. build 5367) </p> <p> But I haven't look compiling the 'first' example. Can you give me some directions? </p> <p> Thanx, Felipe. </p> <p> PS:I'm using gcc -o first first.cpp </p> Ticket Vladimir Prus Wed, 10 Oct 2007 13:11:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/348#comment:3 https://svn.boost.org/trac10/ticket/348#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> 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 &lt;path-to-boost-libraries&gt; -lboost_program_options&lt;variant&gt; options, where &lt;variant&gt; part is described in the getting started guide. </p> Ticket