indeclared M_PI and M_PI_2 in building
Bug #899910 reported by
sampie
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://
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.1415926535897
#define M_PI_2 1.5707963267948
if you find my code useful add it.
thanks
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.