MSVC++ 2010 Express Build Error
Posted: Fri Apr 27, 2012 7:12 pm
I can't build in MSVC++, and get the following error while building the demo:
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
The code in question: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
Code: Select all
return (Color){ (r - min)*coef, (g - min)*coef, (b - min)*coef, alpha };
Thanks,
-Oz