In typedef.h PI is declared as follows: #ifdef WIN32 #define M_PI 3.141592654 #endif // WIN32 My windows/cygwin install gives a warning that M_PI is already defined, thus I changed the first line into: #ifndef M_PI I haven't verified whether PI has the same precision, but can you please look at this, because a Windows machine can have M_PI defined also. With kind regards, Rob Schellhorn