|
Boost Users : |
From: alexandre.ignjatovic_at_[hidden]
Date: 2005-08-16 02:46:13
Hi,
Does anyone know why i get a bad_function_call at the execution of this
code (compiled without the '-g' option):
namespace bpo = boost::program_options;
_optDesc.add_options()
("version,v", "print version")
("help,h", "print this help message")
("config-file,f",
bpo::value<std::string>(&_cfg)->default_value(_cfg),
"specify configuration file")
("id,i",
bpo::value<std::string>(&_id)->default_value(a_id),
"specify server identifier");
bpo::variables_map vm;
bpo::store(bpo::parse_command_line(argc, argv, _optDesc), vm);
bpo::notify(vm);
while it runs correctly with "-g" ?
Compiler : gcc 343 (linux) or cc 57 (solaris)
Boost version: 1.32.0
The exception seems to be trown by the notify function. By the way, it is
quit hard to trace undebuggable compiled code (no -g, no way :))
Thanks in advance.
-- Alexandre Ignjatovic
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