Unable to compile on MSVC 2012

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
Slawd
Posts: 1
Joined: April 23rd, 2013, 12:28 pm

Unable to compile on MSVC 2012

Post by Slawd »

Hello,

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'
Let me know if you need any more information.

Thanks.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Unable to compile on MSVC 2012

Post by Anonymissimus »

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 startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
AI
Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: Unable to compile on MSVC 2012

Post by AI »

You can fix the first error by adding

Code: Select all

#include <functional>
Post Reply