LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to set include path (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-include-path-263596/)

sibtay 12-07-2004 07:32 AM

how to set include path
 
hi everyone

i need to enter an unconventional directory (like /home/somedirectory) in my include path
how can i do this?

thank you

jeffreybluml 12-07-2004 07:38 AM

You can enter it in your ~/.bash_profile for a specific user, or you can enter it into the /etc/bashrc file for it to affect everybody globally. Here's what the format looks ike...

PATH=$PATH:$HOME/bin:/sbin:/usr/sbin:/usr/bin
export PATH

Good luck...

sibtay 12-07-2004 07:41 AM

thankz for you reply
i was actually asking about include path where you have your *.h files
so does this thing also goes for include path?

theYinYeti 12-07-2004 07:42 AM

C_INCLUDE_PATH, and CPLUS_INCLUDE_PATH

Yves.


All times are GMT -5. The time now is 11:54 AM.