我试图在上海合作组织中用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文件?这个问题与上海合作组织的.profile有关
发布于 2012-07-23 15:40:37
ctype.h是标准C库的一部分,所以它确实应该在系统的某个地方。我不使用上海合作组织,但是在我家里的各种FreeBSD机器上,以及在这里工作的许多Solaris机器上,ctype.h在/usr/include。如果你的上海合作组织的机器上没有它,也许它在/usr/local/include?或者在上海合作组织下还有其他的标准位置。无论如何,find应该能够告诉您它在哪里。
https://unix.stackexchange.com/questions/43763
复制相似问题