프로그램 컴파일시 Common.h:1: warning: carriage return in pr
글쓴이: qprk / 작성시간: 수, 2003/04/30 - 4:55오후
[ㅌㅌㅌ@ㅂㅂㅂ multi_robot]$ make make exec1 make[1]: 들어감 `/home/qprk/raid1/qprk/200101/project/multi_robot' 디렉토리 gcc -pedantic -Wall -c -o htmlparser.o htmlparser.c htmlparser.c:9: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:1: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:2: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:3: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:4: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:5: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:6: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:7: warning: carriage return in preprocessing directive Common.h:8: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:9: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:10: warning: carriage return in preprocessing directive Common.h:11: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:12: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:13: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:14: warning: carriage return in preprocessing directive Common.h:15: warning: carriage return in preprocessing directive In file included from Common.h:15, from htmlparser.c:9: HTString.h:27: warning: carriage return in preprocessing directive HTString.h:28: warning: carriage return in preprocessing directive HTString.h:107: warning: carriage return in preprocessing directive In file included from htmlparser.c:9: Common.h:17: warning: carriage return in preprocessing directive Common.h:18: warning: carriage return in preprocessing directive Common.h:19: warning: carriage return in preprocessing directive Common.h:20: warning: carriage return in preprocessing directive Common.h:21: warning: carriage return in preprocessing directive Common.h:34: warning: carriage return in preprocessing directive Common.h:35: warning: carriage return in preprocessing directive Common.h:38: warning: carriage return in preprocessing directive Common.h:39: warning: carriage return in preprocessing directive Common.h:48: warning: carriage return in preprocessing directive Common.h:49: warning: carriage return in preprocessing directive Common.h:50: warning: carriage return in preprocessing directive Common.h:51: warning: carriage return in preprocessing directive Common.h:162: warning: carriage return in preprocessing directive htmlparser.c:12: warning: carriage return in preprocessing directive htmlparser.c:13: warning: carriage return in preprocessing directive htmlparser.c:14: warning: carriage return in preprocessing directive htmlparser.c:15: warning: carriage return in preprocessing directive htmlparser.c:16: warning: carriage return in preprocessing directive htmlparser.c:18: warning: carriage return in preprocessing directive htmlparser.c:19: warning: carriage return in preprocessing directive htmlparser.c:21: warning: carriage return in preprocessing directive htmlparser.c:22: warning: carriage return in preprocessing directive htmlparser.c:23: warning: carriage return in preprocessing directive htmlparser.c:24: warning: carriage return in preprocessing directive htmlparser.c:25: warning: carriage return in preprocessing directive htmlparser.c:26: warning: carriage return in preprocessing directive htmlparser.c:28: warning: carriage return in preprocessing directive htmlparser.c:8: warning: carriage return in source file htmlparser.c:8: warning: (we only warn about the first carriage return) htmlparser.c: In function `htmlparser_function': htmlparser.c:512: invalid lvalue in assignment make[1]: *** [htmlparser.o] 오류 1 make[1]: 나감 `/home/qprk/raid1/qprk/200101/project/multi_robot' 디렉토리 make: *** [all] 오류 2
위와 같이 오류가 발생합니다.
마지막 512 라인의 오류는 제가 확인 하였지만
warning 은 왜 나오는지 모르겠내요..
원래는 저런거 하나도 안나왔었거든요..
Forums:
vi 같은 에디터로 보면 줄 끝마다 ^M 문자가 보이지 않나요?아마
vi 같은 에디터로 보면 줄 끝마다 ^M 문자가 보이지 않나요?
아마 도스나 윈도우즈에서 작성된 소스코드를
유닉스 계열쪽으로 그대로 가져오셔서 그럴 것으로 생각되는데요.
^M 없애는 방법은 여러가지가 있으니까 좋은 방법으로 하시면 될꺼구요.
vi 라면
%s/^M//
명령 정도로 없애실 수 있을 것입니다.
댓글 달기