首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在GCC中找不到标题

在GCC中找不到标题
EN

Unix & Linux用户
提问于 2012-07-23 14:17:59
回答 1查看 8.6K关注 0票数 2

我试图在上海合作组织中用GCC编写一个程序,但是我找不到ctype.h文件。我设法找到了编译时丢失的其他文件,如string.h等。

在找到大多数其他文件的位置之前,我正在返回这个文件:

代码语言:javascript
复制
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中。

现在展示的是:

代码语言:javascript
复制
In file included from test.c:77:
pcutils.h:3: ctype.h: No such file or directory

因此,

我的问题是:

  • 在哪里可以找到ctype.h文件?

这个问题与上海合作组织的.profile有关

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2012-07-23 15:40:37

ctype.h是标准C库的一部分,所以它确实应该在系统的某个地方。我不使用上海合作组织,但是在我家里的各种FreeBSD机器上,以及在这里工作的许多Solaris机器上,ctype.h/usr/include。如果你的上海合作组织的机器上没有它,也许它在/usr/local/include?或者在上海合作组织下还有其他的标准位置。无论如何,find应该能够告诉您它在哪里。

票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/43763

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档