#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <windows.h>
#include <locale.h>
제가 이렇게 헤더파일을 쓸려고하는데요. 이것저것 테스트하다가 이제 규합해서 하나에 파일에 담을려고하는데
windows.h 이것넣으면 빌드자체가 안되더라고요. 저거빼고 실행시키면 실행은되고
혹시 저 헤더파일사이에 충돌 일으키는거라도 있나요??
에러 메세지 같은거 없나요? - return 0;
\dd\documents\visual studio 2010\projects\termproject\termproject\phonefunc.cpp(126): warning C4996: 'gets': This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(277) : see declaration of 'gets' 1>c:\users\dd\docum
이런거 뜨는데 도대체 왜 저거빼고 빌드되면 돌아가고 추가시키면 왜 안돌아가는거지
저거대신에 gets_s 쓰면돌아갈려나?
그냥 경고지 에러는 아니니까 걱정 안 하셔도 되는데, - return 0;
http://stackoverflow.com/questions/16939616/suggest-an-alternative-for-gets-function-using-gcc-compiler
- return 0;
네. 경고수준을 낮추든가 아니면 함수를 바꿔쓰든가 아니면 저 define 하라는 걸 include하기 이전에 선언하셈요
gets 가 표준에서 빠지기 직전 또는 사용 안 하는걸 권장 (deprecated) 상태라서 쓰지 말라는거 - return 0;
새로 글 올렸어요! 헤어파일글쓴이라고해서 거기에서 좀 봐주세영