libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libcvd-members] GVars3: Compiling with TooN 2 on Windows (VC++9.0/2


From: Gerhard Reitmayr
Subject: Re: [libcvd-members] GVars3: Compiling with TooN 2 on Windows (VC++9.0/2008)
Date: Mon, 1 Feb 2010 17:21:56 +0100

I agree, its always a broken config.hh ...

On 1 Feb 2010, at 17:16, Georg Klein wrote:

> Potentially unrelated, but the string TOON_TYPEOF sets off alarm bells to me. 
> Does CVS/Savannah have a post-commit-script-running system which could nuke 
> people's accidental config.hh commits?
> 
> On 1 Feb 2010, at 08:03, E. Rosten wrote:
> 
>> On Sat, 30 Jan 2010, Markus Mayer wrote:
>> 
>>> Hi,
>>> 
>>> while trying to compile libcvd/GVars3 on Windows (x64, Visual Studio
>>> 2008) I encountered a nasty problem in operators.hh, lines 60 to 63. The
>>> compilation died with the following error:
>>> 
>>> 1>C:\dev\Libraries\TooN\TooN/internal/operators.hh(60) : warning C4346:
>>> 'boost::type_of::msvc_typeid_wrapper<sizeof(disable_if<is_function<T>::type,sizer<T>::type>::type)>::type'
>>> : dependent name is not a type
>>> 1>        prefix with 'typename' to indicate a type
>>> 1>        C:\dev\Libraries\TooN\TooN/internal/operators.hh(60) : see
>>> reference to class template instantiation
>>> 'TooN::Internal::AddType<L,R,F>' being compiled
>>> 1>C:\dev\Libraries\TooN\TooN/internal/operators.hh(60) : error C2146:
>>> syntax error : missing ';' before identifier 'type'
>>> 1>C:\dev\Libraries\TooN\TooN/internal/operators.hh(60) : error C4430:
>>> missing type specifier - int assumed. Note: C++ does not support default-int
>>> 
>>> The line being:
>>> 
>>> template<class L, class R, int F = Field<L,R>::is> struct AddType      {
>>> typedef TOON_TYPEOF(gettype<L>()+gettype<R>()) type;};
>>> 
>>> Turns out error C4346 is a feature "in order to conform to the ISO C++
>>> standard."
>>> The solution is to add the "typename" keyword so that the line reads
>> 
>> 
>> It looks like you've got TooN configured to use Boost. Is this correct?
>> 
>> -Ed
>> 
>> 
>> _______________________________________________
>> libcvd-members mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/libcvd-members
> 
> 
> 
> _______________________________________________
> libcvd-members mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/libcvd-members

--
Gerhard Reitmayr
Institute for Computer Graphics and Vision
http://www.icg.tugraz.at/Members/gerhard
tel: ++43 316 873 5082







reply via email to

[Prev in Thread] Current Thread [Next in Thread]