Redian新闻
>
Re: [转载] 求教:如何把自己的头文件目录加到系统默认的路径里?
avatar
Re: [转载] 求教:如何把自己的头文件目录加到系统默认的路径里?# Unix - 噫吁兮,危乎高哉
Y*C
1
朝鲜劳动党中央军事委员会副委员长金正恩被捕!!!
avatar
q*e
2

gcc -I yourowndirectory filename.c
BTW, if the header is your own, better use
#include "ABC/header1.h"
avatar
s*3
3
女兵小手握着
avatar
p*v
4
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"

avatar
a*c
5
他才是副委员长?
avatar
s*s
6
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.

avatar
p*v
7
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

avatar
h*e
8
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.

avatar
p*v
9
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.

avatar
D*g
10
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.

avatar
p*v
11
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.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。