Aug 20, 2003 #1 XoFF Programmer Joined Jun 22, 2003 Messages 23 Location 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 Joined Oct 9, 1998 Messages 4,341 Location 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