[완료] 왕초보입니다. gcc 에러메세지의 의미가..
글쓴이: semjase / 작성시간: 수, 2018/04/25 - 5:01오후
1 #include <stdio.h>
2
3 int main()
4 {
5 char s[1001];
6 scanf("%s", s);
7 printf("%d", (int)strlen(s));
8 return 0;
9 }
10 err.c: In function ‘main’:
err.c:7:20: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
printf("%d", (int)strlen(s));
^
err.c:7:20: warning: incompatible implicit declaration of built-in function ‘strlen’
err.c:7:20: note: include ‘<string.h>’ or provide a declaration of ‘strlen’소스는 의미없이 만든거구요.
에러메세지 중 7:20 여기서 앞의 7은 라인을 의미하는건데 뒤에 20은 무엇인지요?
Forums:


7번째줄 20번째 cursor 위치 입니다.
7번째줄 20번째 cursor 위치 입니다.
감사합니다.
감사합니다.
.
에러 메시지는 없습니다.
에러 메시지는 없습니다.
warning 는 경고입니다.
세벌 https://sebuls.blogspot.kr/
댓글 달기