由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Re: [转载] 求教:如何把自己的头文件目录加到系统默认的路径里?
相关主题
[转载] 求教:如何把自己的头文件目录加到系统默认的路径里?[转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
cxterm compilewhere is gcc?
Questions about Makefile[转载] UNIX下的一个奇怪问题!
[转载] 请教三个关于emacs和perl的问题any debugging tool?
question about Makefile[转载] a BLAS question
[转载] emacs下编译程序,怎么指定路径?如何只列出文件
help on cxterm[转载] Help!How to set directory for #include <**.h>
Help: failed to compile cxterm with cchow would you do this?
相关话题的讨论汇总
话题: abc话题: header话题: 文件目录话题: include话题: btw
进入Unix版参与讨论
1 (共1页)
q***e
发帖数: 90
1

gcc -I yourowndirectory filename.c
BTW, if the header is your own, better use
#include "ABC/header1.h"
p**v
发帖数: 853
2
i used -I. but i want to know if there is one way that is:
一劳永逸 :-)
thanks anyway.

【在 q***e 的大作中提到】
:
: gcc -I yourowndirectory filename.c
: BTW, if the header is your own, better use
: #include "ABC/header1.h"

s**s
发帖数: 242
3
mkdir /usr/include/ABC
cp your_h_files /usr/include/ABC

【在 p**v 的大作中提到】
: i used -I. but i want to know if there is one way that is:
: 一劳永逸 :-)
: thanks anyway.

p**v
发帖数: 853
4
i do not think i have the right to write to /usr/local in the system.
i am not an admin :-(
so i guess have to use -I everytime.

【在 s**s 的大作中提到】
: mkdir /usr/include/ABC
: cp your_h_files /usr/include/ABC

h****e
发帖数: 2125
5
Why not write a perl script to change the string in every file?
That's pretty easy and fast.

【在 p**v 的大作中提到】
: i do not think i have the right to write to /usr/local in the system.
: i am not an admin :-(
: so i guess have to use -I everytime.

p**v
发帖数: 853
6
but i want to use those header files from any location just
like include stardard header files.
i used -I but still feel not good enough.

【在 h****e 的大作中提到】
: Why not write a perl script to change the string in every file?
: That's pretty easy and fast.

D****g
发帖数: 2860
7
if your makefile is well written, just add -I to the compiling options.

【在 p**v 的大作中提到】
: but i want to use those header files from any location just
: like include stardard header files.
: i used -I but still feel not good enough.

p**v
发帖数: 853
8
i have asked the tech support to put the package i used as
a sysytem application. so i do not need to worry about the path,
library, etc. any more :-)

【在 D****g 的大作中提到】
: if your makefile is well written, just add -I to the compiling options.
1 (共1页)
进入Unix版参与讨论
相关主题
how would you do this?question about Makefile
[转载] "socketbits.h" is in which software?[转载] emacs下编译程序,怎么指定路径?
A tough compiler problemhelp on cxterm
[转载] molscript and graspHelp: failed to compile cxterm with cc
[转载] 求教:如何把自己的头文件目录加到系统默认的路径里?[转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
cxterm compilewhere is gcc?
Questions about Makefile[转载] UNIX下的一个奇怪问题!
[转载] 请教三个关于emacs和perl的问题any debugging tool?
相关话题的讨论汇总
话题: abc话题: header话题: 文件目录话题: include话题: btw