Boost logo

Boost Users :

Subject: Re: [Boost-users] [program options] option_groups.cpp example doesn't compile
From: U.Mutlu (for-gmane_at_[hidden])
Date: 2015-02-15 17:53:35

Vladimir Prus wrote, On 02/15/2015 07:43 PM:
> On 02/15/2015 09:03 PM, U.Mutlu wrote:
>> I've boost 1.55 from the debian repository.
>> I'm trying to compile the below example of the 1.55 version
>> (it's same as that of 1.57), but I get the following compile errors.
>> Should I use some 'magic' compiler options, or what else is the reason for
>> this grandious failure?
>> $ g++ -Wall -std=gnu++11 option_groups.cpp -lboost_program_options
>> option_groups.cpp: In function ‘int main(int, char**)’:
>> option_groups.cpp:44:46: error: ‘class
>> boost::program_options::typed_value<std::basic_string<char>, char>’ has no
>> member named ‘implicit’
>> ("help-module", value<string>()->implicit(),
>> ^
>> option_groups.cpp:96:11: error: reference to ‘exception’ is ambiguous
>> catch(exception& e) {
> Fixed here:

Ok, thx, now with these changes it compiles successfully.

BTW, as said in other posting of mine today, in the online-documentation
of this sub-library at a link to its "example" directory is missing.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at