Boost logo

Boost :

From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2005-07-06 16:09:47


Doug Gregor wrote:

>> |program_options| cmdline_test: vc-7_0 cmdline_test_dll:
>> mingw-3_4_2 vc-7_0 parsers_test: vc-7_0 parsers_test_dll: vc-7_0
>> positional_options_test_dll: mingw-3_4_2 unicode_test: vc-7_0
>> unicode_test_dll: cw-9_5-darwin gcc-3_3-darwin vc-7_0
>> variable_map_test: vc-7_0 variable_map_test_dll: vc-7_0
>
>
> Is the program_options library even usable on vc-7_0? Perhaps not...

The library compiles with vc-7_0, but the following application doesn't
compile.
(I'm manually linking libraries in, didn't test autolink with this.)

#define BOOST_ALL_NO_LIB

#include <boost/program_options.hpp>

int main (int argc, char* argv[]) {

    namespace po = boost::program_options;

    po::options_description desc("Allowed options");
    desc.add_options()
        ("s",po::value<std::string>(), "a string")
        ;

    po::variables_map vm;
    po::store(po::parse_command_line(argc, argv, desc), vm);
    po::notify(vm);

    std::string const& s = vm["s"].as<std::string>();

    return 0;
}

I don't get most of the error messages in the regression tests, and some
of the errors, such as the above, point to any.hpp:

C:\Documents and Settings\pedro.lamarao\My
Documents\boost\boost_HEAD\boost\any.hpp(185) : error C2027: use of
undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'

-- 
Pedro Lamarão
Desenvolvimento
Intersix Technologies S.A.
SP: (55 11 3803-9300)
RJ: (55 21 3852-3240)
www.intersix.com.br
Your Security is our Business

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk