Update: I installed Clang and set that as the compiler and now I get the following error messages instead:
1>D:\Spine2D\Spine2D\spine-cpp\include\spine/MathUtil.h(50,24): error : expected ')'
1>D:\Spine2D\Spine2D\spine-cpp\include\spine/MathUtil.h(50,18): message : to match this '('
It's referring to the same file and line number.
=======================================================================================
Hi,
I'm running into an error when I try to compile the spine-cpp runtime into my test application using OpenGL as the renderer. The first of many error messages says:
1>D:\Spine2D\Spine2D\spine-cpp\include\spine\MathUtil.h(50,18): error C2146: syntax error: missing ')' before identifier 'a'
It's referring to this declaration in the MathUtil.h file for some reaason:
template<typename T>
static inline T min(T a, T b) { return a < b ? a : b; }
I'm using Visual Studio 2019 Professional with the latest updates at version 16.4.0 and compiling for x64 Debug. Any insight into this issue is greatly appreciated. I'm also using the following libraries:
gl3w - OpenGL extensions manager
glfw - window management
stb - image loading