[질문] 다시 C++ 합니다. 그런데, 처음부터 당황.
글쓴이: naisr00t / 작성시간: 월, 2004/07/12 - 10:11오후
[root@GG InterationDataFile]# g++ -o InterationDataFile InterationDataFile.cpp In file included from /usr/include/c++/3.2.2/backward/iostream.h:31, from InterationDataFile.cpp:1: /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated
전에 C++을 문법만 보다가 이번에 본격적으로(?)으로 공부해볼까 합니다.
여태 C만 했었는데, 객체지향을 배워보고 싶어서 저는 C++을 선택하게 되었습니다.
그런데, 처음부터 막히네요.
#g++ -o InterationDataFile InterationDataFile.cpp
라고 했더니 위와같이 메세지가 나오더군요. 글쎄 읽어보아서 다시 컴파일 했습니다.(사실 에러는 없구요)
#g++ -Wno-deprecated -o InterationDataFile InterationDataFile.cpp
라고 했습니다. 그랬더니 위와같은 메세지는 안나오는데,
해석상 감은 오는데, 전에 g++썼을 때는 그렇지 않았던 기억이 나는데 ...
또한 위의 -W옵션 계속해서 줘야 하나요? 타이핑이 귀찮아지네요. -_-
주지 않고 하는 방법 없나요? 당근 워닝메세지도 안뜨고 말이죠.[/code]
Forums:
C++ 표준 헤더를 쓰라고 컴파일러가 불평하는 것 같습니다.ios
C++ 표준 헤더를 쓰라고 컴파일러가 불평하는 것 같습니다.
iostream.h 대신 iostream을 써주시고요
using namespace std;
꼭 잊지 마시구요...
C++standard 가 정해진지 꽤 지났습니다. ^^
C++, 그리고 C++....
죽어도 C++
댓글 달기