|
From: | Georg Klein |
Subject: | Re: [libcvd-members] GVars3: Compiling with TooN 2 on Windows (VC++9.0/2008) |
Date: | Mon, 1 Feb 2010 08:24:18 -0800 |
I guess an alternative would be to erase it in the windows batch file. On 1 Feb 2010, at 08:21, Gerhard Reitmayr wrote:
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. Thecompilation 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 type1> C:\dev\Libraries\TooN\TooN/internal/operators.hh(60) : seereference to class template instantiation 'TooN::Internal::AddType<L,R,F>' being compiled1>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-intThe 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 readsIt 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 _______________________________________________ libcvd-members mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/libcvd-members
[Prev in Thread] | Current Thread | [Next in Thread] |