Page MenuHome

build error
Closed, ResolvedPublic

Description

I'm getting a build error on a windows 7 x64 box running VS 9.0. The error is in the intern\iksolver\intern\IK_QSegment.cpp(375) : error C2065: 'M_PI' : undeclared i
dentifier

text of error: https://docs.google.com/Doc?docid=0AWg_Yxf_xrC-ZGR6Njc3ajRfODZoZjRjdjlmdg&hl=en

This also is showing up on my windows XP build box.

Event Timeline

Easy to fix, just move(in IK_QSegment.cpp)

#ifdef WIN32
#define _USE_MATH_DEFINES
#endif

before of ALL the #includes.
I had this problem with VS 10.0, but not with VS 9.0(windows vista 32-bit C++ express editions for both.)

Fix in svn, thanks for the report.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Apr 20 2010, 11:28 AM