[program_options] Abort trap by store

Hi,
I habe a problem with store(parse_config_file(...), ...);
I don't know why...
That isn't my first program with program_options but
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 use the gcc 3.3.5 and I compile static with: /usr/local/lib/libboost_program_options-gcc-1_33_1.a
My OS is OpenBSD
What I make false? My script is at the end.
Sorry for my bad english.
I thanks for Help,
Dear, Pascal Vizeli
[cpp]
bpo::variables_map vm_cmd;
bpo::options_description desc_file("config file"),
desc_cmd("command line");
// Make options descriptions
desc_cmd.add_options()
("config,c", bpo::valuestd::string(), "The Config file")
("help,h", "produce help message")
;
desc_file.add_options()
("port", bpo::value<int>()->default_value(6667), "IRC Server Port")
("server", bpo::value
participants (1)
-
Pascal Vizeli