|
Boost Users : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-02 02:24:26
Pascal Vizeli wrote:
> Hi,
>
> I habe a problem with store(parse_config_file(...), ...);
> I don't know why...
> it is my first program with parse_command_line and parse_config_file in
> one.
>
> Here is my code.
> First I parse the command line, second I parse the config file.
> Is it a very simple script.
>
> With my debuger (gdb and ddd) I can see, that the problem
> is here: bpo::store(bpo::parse_config_file(conf_file, desc_file), vm); (at
> the "end" from script). vm is global definiert. The Namspace bpo ist
> boost::program_options
I don't see any try/catch block in your program. Since program_options
throws on errors, like underfined option, you should have try/catch block
and handle errors there. The 'aborted' you see is most likely a result of
uncaught exception.
- Volodya
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