MSVC++ 2010 Express Build Error

Discuss any Chipmunk bugs here.
Post Reply
MrOz
Posts: 36
Joined: Tue Mar 02, 2010 11:36 pm
Contact:

MSVC++ 2010 Express Build Error

Post 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
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: MSVC++ 2010 Express Build Error

Post 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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests