C, C++
[C++] POSIX function names 오류
coding-restaurant
2021. 10. 19. 12:29
728x90
728x90
C++ POSIX function names 오류 메세지이다.
The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: new-name.
To turn off deprecation warnings for these functions, define the preprocessor macro _CRT_NONSTDC_NO_WARNINGS. You can define this macro at the command line by including the option /D_CRT_NONSTDC_NO_WARNINGS.
* 예제를 풀어보면서 strupr 함수 사용 시 오류 발생
임시로 적용
#define _CRT_NONSTDC_NO_WARNINGS
비슷한 걸로 strcpy 오류를 잠재우는
#define _CRT_SECURE_NO_WARNINGS
참고한 곳
728x90
728x90