GCC에서 헤더를 찾을 수 없습니다

GCC에서 헤더를 찾을 수 없습니다

SCO에서 GCC를 사용하여 프로그램을 컴파일하려고 하는데 파일을 찾을 수 없습니다 ctype.h. string.h등 컴파일 중에 누락된 다른 파일을 찾았습니다.

나는 이 반품을 받았습니다.앞으로대부분의 다른 파일 위치를 찾았습니다.

In file included from test.c:76:
strutil.c:2: string.h: No such file or directory
strutil.c:3: stdio.h: No such file or directory
In file included from test.c:77:
pcutils.h:3: ctype.h: No such file or directory
In file included from test.c:78:
pcutils.c:2: string.h: No such file or directory
pcutils.c:3: stdio.h: No such file or directory
test.c:79: time.h: No such file or directory
test.c:81: stdio.h: No such file or directory

이러한 파일의 대부분은 다음 위치에 있습니다./opt/K/SKUNK99/Gcc/2.95.2pl1/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/include/oldstyle

이제 다음과 같이 표시됩니다.

In file included from test.c:77:
pcutils.h:3: ctype.h: No such file or directory

그래서 내 질문은 다음과 같습니다

  • 이 파일은 어디서 찾을 수 있나요 ctype.h?

이 질문은 다음과 관련이 있습니다.SCO의 .profile

답변1

ctype.h표준 C 라이브러리의 일부이므로 실제로 시스템 어딘가에 있어야 합니다. 저는 SCO를 사용하지 않지만 집에 있는 다양한 FreeBSD 컴퓨터와 여기에서 작업하는 수많은 Solaris 컴퓨터에서 ctype.h사용합니다 /usr/include. SCO 컴퓨터에 SCO가 없다면 거기에 있을 수도 있습니다 /usr/local/include. 아니면 아래에 다른 표준 위치가 있을까요? SCO. find어쨌든, 그것이 어디에 있는지 알려줄 수 있어야 합니다.

관련 정보