MSVC++ 2010 Express Build Error

Discuss any Chipmunk bugs here.

MSVC++ 2010 Express Build Error

Postby MrOz » Fri Apr 27, 2012 7:12 pm

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
MrOz
 
Posts: 36
Joined: Tue Mar 02, 2010 11:36 pm

Re: MSVC++ 2010 Express Build Error

Postby slembcke » Thu May 03, 2012 1:26 pm

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


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest