Aug 20, 2003 #1 XoFF Programmer Jun 22, 2003 23 GB i use microsoft visual (c/c++). When I include library math.h and in program i use M_PI i get error : error C2065: 'M_PI' : undeclared identifier tx 4 help
i use microsoft visual (c/c++). When I include library math.h and in program i use M_PI i get error : error C2065: 'M_PI' : undeclared identifier tx 4 help
Aug 20, 2003 1 #2 palbano Programmer Oct 9, 1998 4,341 US >> i get error : error C2065: 'M_PI' : undeclared identifier To solve those compiler errors, use only identifiers that [blue]are[/blue] declared. Try something like this: Code: #ifndef M_PI # define M_PI 3.14159265358979323846 #endif // M_PI -pete Upvote 0 Downvote
>> i get error : error C2065: 'M_PI' : undeclared identifier To solve those compiler errors, use only identifiers that [blue]are[/blue] declared. Try something like this: Code: #ifndef M_PI # define M_PI 3.14159265358979323846 #endif // M_PI -pete