Page 1 of 1

Compilation help pleeeease!

Posted: Sat Mar 01, 2014 8:06 pm
by Toumal
Hey there,

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
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-int
And this:
Code: Select all
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
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!

Re: Compilation help pleeeease!

Posted: Sun Mar 02, 2014 1:03 pm
by learn_more
i shall set aside my principles for once, and post a usefull reply to a topic with help or please in the title.

you need a newer version of msvc to compile the stuff, yvt keeps on adding code that can't be built with msvc 2010.