indeclared M_PI and M_PI_2 in building

Bug #899910 reported by sampie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ARToolKitPlus
Fix Released
Undecided
Unassigned

Bug Description

hi!!

i found an error when building with VC++ 2010:
error C2065: 'M_PI' : undeclared identifier

also for the M_PI_2

first i added #define _USE_MATH_DEFINES but it seems to not solve the problem, and then i tried to search on the net to see the cause, i found this site:
http://connect.microsoft.com/VisualStudio/feedback/details/344610/visual-c-2008-standard-m-pi-is-not-defined

it's a bug in VC++ in order to fix it i defined the M_PI_2 and M_PI in this files:
arGetTransMat2.cpp
rpp_quintic.cpp
rpp.cpp

#define M_PI 3.14159265358979323846
#define M_PI_2 1.57079632679489661923

if you find my code useful add it.

thanks

sampie (raouf-najjar)
Changed in artoolkitplus:
status: New → Incomplete
Changed in artoolkitplus:
status: Incomplete → Fix Committed
Changed in artoolkitplus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.