컴파일 에러나오는 오류를 모르겠습니다.

mentos21 Reply 7 years 16 hours ago
컴파일 에러나오는 오류를 모르겠습니다. 비주얼 스튜디오 2012에서는 오류없이 잘돌아갑니다.
withcs1 Reply 7 years 1 hour ago
Main.c: In function 'main': Main.c:19:27: error: 'M_1_PI' undeclared (first use in this function) printf("%lf\n", sin(n1*M_1_PI / 180)); ^ Main.c:19:27: note: each undeclared identifier is reported only once for each function it appears in _USE_MATH_DEFINES은 표준방식이 아니기때문에 일부컴파일러에서는 지원하지 않는다고합니다.