Open BonBonSlick opened 4 years ago
If you used the default Visual Studio project in the proj.win32 folder, then that may be the problem.
Create a new project with CMake. Install CMake on your system, then follow the instructions here: https://github.com/cocos2d/cocos2d-x/tree/v3/cmake
For VS2019, you can use this to generate the Win32 project:
mkdir win32build
cd .\win32build
cmake .. -G"Visual Studio 16 2019" -Tv142 -A Win32
I use now cocos2d-x v 4.0 as it outperforms v 3.17. Creating a clear win 32 project with Cmake displays now other default errors in error log.
Windows 10 VS 2019
Severity Code Description Project File Line Suppression State Suppression State
Error (active) E0130 expected a '{' test C:\Cocos_2D\Games\test\cocos2d\cocos\base\CCConsole.h 63
Error (active) E0130 expected a '{' test C:\Cocos_2D\Games\test\cocos2d\cocos\base\ccUTF8.h 66
Do a test:
[installation path]\tests\cpp-empty-test
mkdir win32build
cd .\win32build
cmake .. -G"Visual Studio 16 2019" -Tv142 -A Win32
cpp-empty-test.sln
in Visual Studio 2019.cpp-empty-test
project and set it as your start-up project.See if that works. If it does, then the issue you're having is in your own code.
Steps to Reproduce:
First error of 3 leads to https://github.com/irontec/Ikasesteka/blob/master/Ikasesteka/cocos2d/cocos/base/CCConsole.h#L60