Boost logo

Boost Users :

From: alexandre.ignjatovic_at_[hidden]
Date: 2005-08-16 02:46:13


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;
        ("version,v", "print version")
        ("help,h", "print this help message")
         "specify configuration file")
         "specify server identifier");
    bpo::variables_map vm;
    bpo::store(bpo::parse_command_line(argc, argv, _optDesc), 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, kalb at, bjorn.karlsson at, gregod at, wekempf at