I am using VS Express 2013 SP2 for Windows… have used VS Express 2013 SP2 for Windows and Cocos2d-x 3.1 to publish games successfully in the past. My OS is Windows 8.1 Pro in Parallels.
Now I am trying to use VS Express 2013 SP2 for Windows with Cocos2d.x 3.6, and the cpp-tests will not build.
When I attempt to build the tests following the instructions from the Programmers Guide (build/cocos2d-win8.1-universal.sln) or when I create a new project using the cocos console and then open the proj.win8.1-universal/AppName.sln and build, for both the cpp-tests and the newly created app, I get the same build errors.
For Windows 8.1 I get errors relating to WinSock2.h not being found.
In various files, the #include <WinSock2.h> cannot be resolved.
For WindowsPhone 8.1 I get linking errors relating to KeyBoardWinRT.
When building cpp-tests.Windows I get the following errors:
Error 3 error C1083: Cannot open include file: 'WinSock2.h': No such file or directory (X:\Tools\Cocos2d-x\cocos2d-x-3.6\cocos\editor-support\spine\proj.win8.1-universal\libSpine.Shared\..\..\spine-cocos2dx.cpp) x:\tools\cocos2d-x\cocos2d-x-3.6\cocos\base\CCConsole.h 31 1 libSpine.Windows
Error 2 error C1083: Cannot open include file: 'WinSock2.h': No such file or directory (X:\Tools\Cocos2d-x\cocos2d-x-3.6\cocos\editor-support\spine\proj.win8.1-universal\libSpine.Shared\..\..\SkeletonRenderer.cpp) x:\tools\cocos2d-x\cocos2d-x-3.6\cocos\base\CCConsole.h 31 1 libSpine.Windows
Error 4 error C1083: Cannot open include file: 'WinSock2.h': No such file or directory (X:\Tools\Cocos2d-x\cocos2d-x-3.6\cocos\editor-support\spine\proj.win8.1-universal\libSpine.Shared\..\..\SkeletonAnimation.cpp) x:\tools\cocos2d-x\cocos2d-x-3.6\cocos\base\CCConsole.h 31 1 libSpine.Windows
Error 1 error C1083: Cannot open include file: 'WinSock2.h': No such file or directory (X:\Tools\Cocos2d-x\cocos2d-x-3.6\cocos\editor-support\spine\proj.win8.1-universal\libSpine.Shared\..\..\PolygonBatch.cpp) x:\tools\cocos2d-x\cocos2d-x-3.6\cocos\base\CCConsole.h 31 1 libSpine.Windows
Error 5 error C1083: Cannot open include file: 'WinSock2.h': No such file or directory x:\tools\cocos2d-x\cocos2d-x-3.6\cocos\base\CCConsole.h 31 1 libcocos2d_8_1.Windows
Error 6 error C1083: Cannot open include file: 'WinSock2.h': No such file or directory x:\tools\cocos2d-x\cocos2d-x-3.6\cocos\base\CCConsole.h 31 1 cpp-tests.Windows
When building cpp-tests.WindowsPhone I get the following errors:
Error 3 error LNK2019: unresolved external symbol "public: __cdecl cocos2d::KeyBoardWinRT::~KeyBoardWinRT(void)" (??1KeyBoardWinRT@cocos2d@@Q$AAA@XZ) referenced in function "public: virtual void __cdecl cocos2d::KeyBoardWinRT::[Platform::IDisposable]::<Dispose>(void)" (?<Dispose>@?QIDisposable@Platform@@KeyBoardWinRT@cocos2d@@U$AAAXXZ) X:\Tools\Cocos2d-x\cocos2d-x-3.6\tests\cpp-tests\proj.win8.1-universal\cpp-tests.WindowsPhone\pch.obj cpp-tests.WindowsPhone
Error 2 error LNK2001: unresolved external symbol "public: __cdecl cocos2d::KeyBoardWinRT::~KeyBoardWinRT(void)" (??1KeyBoardWinRT@cocos2d@@Q$AAA@XZ) X:\Tools\Cocos2d-x\cocos2d-x-3.6\tests\cpp-tests\proj.win8.1-universal\cpp-tests.WindowsPhone\libSpine.WindowsPhone.lib(spine-cocos2dx.obj) cpp-tests.WindowsPhone
Error 4 error LNK2001: unresolved external symbol "public: __cdecl cocos2d::KeyBoardWinRT::~KeyBoardWinRT(void)" (??1KeyBoardWinRT@cocos2d@@Q$AAA@XZ) X:\Tools\Cocos2d-x\cocos2d-x-3.6\tests\cpp-tests\proj.win8.1-universal\cpp-tests.WindowsPhone\libSpine.WindowsPhone.lib(SkeletonRenderer.obj) cpp-tests.WindowsPhone
Error 5 error LNK2001: unresolved external symbol "public: __cdecl cocos2d::KeyBoardWinRT::~KeyBoardWinRT(void)" (??1KeyBoardWinRT@cocos2d@@Q$AAA@XZ) X:\Tools\Cocos2d-x\cocos2d-x-3.6\tests\cpp-tests\proj.win8.1-universal\cpp-tests.WindowsPhone\libSpine.WindowsPhone.lib(SkeletonAnimation.obj) cpp-tests.WindowsPhone
Error 6 error LNK2001: unresolved external symbol "public: __cdecl cocos2d::KeyBoardWinRT::~KeyBoardWinRT(void)" (??1KeyBoardWinRT@cocos2d@@Q$AAA@XZ) X:\Tools\Cocos2d-x\cocos2d-x-3.6\tests\cpp-tests\proj.win8.1-universal\cpp-tests.WindowsPhone\libSpine.WindowsPhone.lib(PolygonBatch.obj) cpp-tests.WindowsPhone
Error 7 error LNK1120: 1 unresolved externals X:\Tools\Cocos2d-x\cocos2d-x-3.6\build\ARM\Debug\cpp-tests.WindowsPhone\cpp-tests.WindowsPhone.exe 1 1 cpp-tests.WindowsPhone
Any idea what might be causing the builds to fail?