실행환경 |
|
Desktop |
조립식 |
CPU |
Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz 3.40GHz |
Memory |
8.00 GB |
OS |
Windows 7 Professional K 64bit |
Java |
1.8.0_05 |
MySQL | Ver 14.14 Distrib 5.6.19, for Win64 |
Web Server | Apache Tomcat 7.0.51 |
문제점
컴파일시 아래와 같은 에러 중 어느 한가지라도 발생했을 경우.(확실치는 않다.)
Warning 2 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 336 1 Programa 3205 Warning 3 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 363 1 Programa 3205 Warning 4 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 369 1 Programa 3205 Warning 5 warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 371 1 Programa 3205 Warning 6 warning C4996: 'strtok': This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 374 1 Programa 3205 Warning 7 warning C4996: 'strtok': This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 375 1 Programa 3205 Warning 9 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 718 1 Programa 3205 Warning 10 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 727 1 Programa 3205 Warning 11 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 729 1 Programa 3205 Warning 12 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 754 1 Programa 3205 Warning 13 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 766 1 Programa 3205 Warning 14 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 768 1 Programa 3205 Warning 15 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 792 1 Programa 3205 Warning 16 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 806 1 Programa 3205 Warning 17 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 808 1 Programa 3205 Warning 18 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 830 1 Programa 3205 Warning 19 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 842 1 Programa 3205 Warning 20 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 844 1 Programa 3205 Warning 21 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 866 1 Programa 3205 Warning 22 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 911 1 Programa 3205 Warning 23 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. f:\fernando luiz\teste-3205\ps3000.c 939 1 Programa 3205
해결방안
Project properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions > _CRT_SECURE_NO_WARNINGS 프로젝트 오른쪽 클릭 > 속성 > 구성 속성 > C/C++ > 전처리기 > 전처리기 정의 > _CRT_SECURE_NO_WARNINGS 추가.
보안상의 문제로 다른 함수를 사용하라는 것인데 설정 추가로 해결할 수 있다.
'대학 생활 > C' 카테고리의 다른 글
[C] 파일 목록 가져오기(출력) 예제 (0) | 2014.10.15 |
---|---|
[VS] COFF로 변환하는 동안 오류가 발생했습니다. 파일이 잘못되었거나 손상되었습니다. (0) | 2014.10.15 |
[C] 유닉스의 open()를 대신하는 메서드 (0) | 2014.10.09 |
[C] 연산자 우선순위 (0) | 2014.05.02 |