LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 959|回复: 2

C编程 头文件 求助

[复制链接]
发表于 2007-7-18 19:42:23 | 显示全部楼层 |阅读模式
怎么样 把自己定义的一个头文件  apue.h 弄成和stdio.h 那样  可以全局调用呢?

  就是没把apue.h 放在一个文件  也可以Include它
发表于 2007-7-18 23:21:56 | 显示全部楼层
[PHP]
-I dir
       Add the directory dir to the list of directories to be searched for
       header files.  Directories named by -I are searched before the
       standard system include directories.  If the directory dir is a
       standard system include directory, the option is ignored to ensure
       that the default search order for system directories and the spe-
       cial treatment of system headers are not defeated .
[/PHP]
回复 支持 反对

使用道具 举报

发表于 2007-7-26 17:21:37 | 显示全部楼层
放在系统的include 目录中,或在makefile 中用 I  添加进去
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表