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.
|