Unable to compile on MSVC 2012
Moderator: Forum Moderators
Unable to compile on MSVC 2012
Hello,
I get the following errors when trying to compile version 1.10.6 on Microsoft Visual Studio 2012:
Let me know if you need any more information.
Thanks.
I get the following errors when trying to compile version 1.10.6 on Microsoft Visual Studio 2012:
Code: Select all
1>------ Build started: Project: wesnothlib, Configuration: Debug Win32 ------
1> version.cpp
1>c:\wesnoth-1.10.6\src\version.cpp(254): error C2039: 'greater' : is not a member of 'std'
1>c:\wesnoth-1.10.6\src\version.cpp(254): error C2065: 'greater' : undeclared identifier
1>c:\wesnoth-1.10.6\src\version.cpp(254): error C2062: type 'unsigned int' unexpected
1>c:\wesnoth-1.10.6\src\version.cpp(254): error C2947: expecting '>' to terminate template-argument-list, found '>'
1>c:\wesnoth-1.10.6\src\version.cpp(254): error C2783: 'bool `anonymous-namespace'::recursive_order_operation(const std::vector<_Ty> &,const std::vector<_Ty> &,size_t)' : could not deduce template argument for '_Toperator'
1> with
1> [
1> _Ty=unsigned int
1> ]
1> c:\wesnoth-1.10.6\src\version.cpp(184) : see declaration of '`anonymous-namespace'::recursive_order_operation'
1>c:\wesnoth-1.10.6\src\version.cpp(254): error C2783: 'bool `anonymous-namespace'::recursive_order_operation(const std::vector<_Ty> &,const std::vector<_Ty> &,size_t)' : could not deduce template argument for '_Tfallback_operator'
1> with
1> [
1> _Ty=unsigned int
1> ]
1> c:\wesnoth-1.10.6\src\version.cpp(184) : see declaration of '`anonymous-namespace'::recursive_order_operation'
Thanks.
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Unable to compile on MSVC 2012
Not going to be fixed anytime soon. There are only only perhaps 2 or 3 devs who compile with MSVC rather regularly and we don't use 2012. Please use vc9 (2008).
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: Unable to compile on MSVC 2012
You can fix the first error by adding
Code: Select all
#include <functional>