由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to set include PATH
相关主题
问问header 文件的位置Re: how to automatically send email with attachments in Perl?
Invalid ELF header Re: 问一个shell script的问题unix command explain??
how to setup lib path?[转载] Pine charset Question
how to use batch file to ftp files in UNIX?[转载] "socketbits.h" is in which software?
a problemgcc 编译的时候要包括 header source file 吗?
Which package to contains ANSI C headers in IRIX?关于group的属性
how to rename a bunch of filesvi 一问.
Re: [转载] 求教:如何把自己的头文件目录加到系统默认的路径里?[转载] How to list the files with specific permission?
相关话题的讨论汇总
话题: crsp话题: include话题: path话题: c++话题: xyb
进入Unix版参与讨论
1 (共1页)
n*****w
发帖数: 14
1
Another question:
I need to run C/C++ programs using CRSP for my research. CRSP related
stuff is located at /opt/crsp/. Specifically, I need to include a bunch of
header files (.h) located at /opt/crsp/include/ in my C/C++ programs, and
I want them to be able to include that path by default, i.e., without
having to specify the absolute path in each #include.
I tried to change PATH but it didn't work. Is there anything like
INCLUDEPATH? Thanks a lot.
q*******t
发帖数: 29
2
gcc -I$INCLUDE_PATH

【在 n*****w 的大作中提到】
: Another question:
: I need to run C/C++ programs using CRSP for my research. CRSP related
: stuff is located at /opt/crsp/. Specifically, I need to include a bunch of
: header files (.h) located at /opt/crsp/include/ in my C/C++ programs, and
: I want them to be able to include that path by default, i.e., without
: having to specify the absolute path in each #include.
: I tried to change PATH but it didn't work. Is there anything like
: INCLUDEPATH? Thanks a lot.

n*****w
发帖数: 14
3
Thanks. But the problem is, using -I, I can only save by writing
#include "crsp.h" instead of #include "/opt/crsp/include/crsp.h".
But "crsp.h" itself has a bunch of other #include "crsp_xyb.h".
What shall I do?

【在 q*******t 的大作中提到】
: gcc -I$INCLUDE_PATH
q*******t
发帖数: 29
4
try include
【在 n*****w 的大作中提到】
: Thanks. But the problem is, using -I, I can only save by writing
: #include "crsp.h" instead of #include "/opt/crsp/include/crsp.h".
: But "crsp.h" itself has a bunch of other #include "crsp_xyb.h".
: What shall I do?

w*****n
发帖数: 94
5
that's not necessary, cause crsp_xyb.h is includes by crsp.h,
just make sure path of crsp_xyb.h in included with a -I.

【在 q*******t 的大作中提到】
: try include
1 (共1页)
进入Unix版参与讨论
相关主题
[转载] How to list the files with specific permission?a problem
[转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!Which package to contains ANSI C headers in IRIX?
关于tar的愚昧问题how to rename a bunch of files
HELP!! (CXTERM)Re: [转载] 求教:如何把自己的头文件目录加到系统默认的路径里?
问问header 文件的位置Re: how to automatically send email with attachments in Perl?
Invalid ELF header Re: 问一个shell script的问题unix command explain??
how to setup lib path?[转载] Pine charset Question
how to use batch file to ftp files in UNIX?[转载] "socketbits.h" is in which software?
相关话题的讨论汇总
话题: crsp话题: include话题: path话题: c++话题: xyb