Page 1 of 1

MSVC++ 2010 Express Build Error

Posted: Fri Apr 27, 2012 7:12 pm
by MrOz
I can't build in MSVC++, and get the following error while building the demo:
MSVC++ wrote:2>------ Rebuild All started: Project: demo, Configuration: Debug Win32 ------
2> Tumble.c
2> TheoJansen.c
2> Tank.c
2> Springies.c
2> Slice.c
2> Query.c
2> PyramidTopple.c
2> PyramidStack.c
2> Pump.c
2> Plink.c
2> Player.c
2> Planet.c
2> OneWay.c
2> LogoSmash.c
2>c:\users\alexander\chipmunk-physics\demo\logosmash.c(104): warning C4305: 'argument' : truncation from 'double' to 'float'
2>c:\users\alexander\chipmunk-physics\demo\logosmash.c(104): warning C4305: 'argument' : truncation from 'double' to 'float'
2>c:\users\alexander\chipmunk-physics\demo\logosmash.c(104): warning C4305: 'argument' : truncation from 'double' to 'float'
2> Joints.c
2> Crane.c
2> ContactGraph.c
2> ChipmunkDemo.c
2> ChipmunkDebugDraw.c
2>c:\users\alexander\chipmunk-physics\demo\chipmunkdebugdraw.c(89): error C2059: syntax error : '{'
2>c:\users\alexander\chipmunk-physics\demo\chipmunkdebugdraw.c(89): error C2143: syntax error : missing ';' before '{'
2>c:\users\alexander\chipmunk-physics\demo\chipmunkdebugdraw.c(94): error C2143: syntax error : missing ';' before '}'
2> Chains.c
2> Generating Code...
2> Compiling...
2> Buoyancy.c
2> Bench.c
The code in question:

Code: Select all

return (Color){ (r - min)*coef, (g - min)*coef, (b - min)*coef, alpha };
I'm more of a MinGW/linux guy, so I don't know if this is a quirk from our good friends in redmond.

Thanks,
-Oz

Re: MSVC++ 2010 Express Build Error

Posted: Thu May 03, 2012 1:26 pm
by slembcke
Sorry for the delayed reply. I had to reinstall Windows and VS 2010 Express on my virtual machine. It should be fixed now.