Sorry if this sounds annoying, but I need help compiling this stuff on MSVC10. Followed the instructions, SDL_image is installed alright, cmake runs fine and when compiling I get tons of this:
Code: Select all
And this:6> c:\users\toumal\documents\github\openspades\sources\externals\include\sdl2\SDL_stdinc.h(339) : see previous definition of 'M_PI'
6>c:\users\toumal\documents\github\openspades\sources\gui\SDLRunner.h(40): error C2332: 'enum' : missing tag name
6>c:\users\toumal\documents\github\openspades\sources\gui\SDLRunner.h(40): error C2236: unexpected 'class' 'spades::gui::SDLRunner::RendererType'. Did you forget a ';'?
6>c:\users\toumal\documents\github\openspades\sources\gui\SDLRunner.h(40): error C3381: 'spades::gui::SDLRunner::RendererType' : assembly access specifiers are only available in code compiled with a /clr option
6>c:\users\toumal\documents\github\openspades\sources\gui\SDLRunner.h(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
6>c:\users\toumal\documents\github\openspades\sources\gui\SDLRunner.h(43): error C2143: syntax error : missing ';' before '}'
6>c:\users\toumal\documents\github\openspades\sources\gui\SDLRunner.h(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-intCode: Select all
Since I'm pretty sure that the code itself is fine, I guess it's some silly windows compiler setting I forgot to change, or something. I admit I'm not a windows guy, much less MSVC. Any help would be greatly appreciated!6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(187): error C2143: syntax error : missing ',' before '...'
6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(188): error C2065: 'T' : undeclared identifier
6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(188): error C2143: syntax error : missing ')' before '...'
6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(188): error C2182: 'SetParameterValue' : illegal use of type 'void'
6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(188): error C2059: syntax error : ')'
6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(191): error C2332: 'class' : missing tag name
6>C:\Users\Toumal\Documents\GitHub\openspades\Sources\Core/Strings.h(191): error C2011: '<unnamed-tag>' : 'enum' type redefinition