LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-02-2001, 02:25 PM   #1
jwilson
LQ Newbie
 
Registered: Feb 2001
Posts: 11

Rep: Reputation: 0

How I can include the path

/root/linux/include

to my GCC include path so that header files there would be recognized?

Or how would I create a symlink in /usr/include to point to /root/linux/include

Any help would be greatly appreciated.

/jeff
 
Old 04-02-2001, 03:58 PM   #2
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15
You could just explicitly declare where the header file is, like:
#include "/some/dir/file.h"

Or, like you were saying make a symlink to that file in a directory where your install of gcc already knows to look for the header files.

Make a symlink like this:
$ ln -s /root/include/originalFile /usr/include/linkFile

will create a link in /usr/include which references the file in /root/include/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
header include path KDE4me Linux - Newbie 6 01-06-2005 06:17 AM
Kdevelop and #include-Path Glorfindel Programming 1 11-26-2004 11:16 AM
where did my include path go aot2002 Linux - Wireless Networking 2 01-24-2004 05:02 AM
Path to include? Mazen Alzogbi Red Hat 1 11-15-2003 06:25 AM
PHP Path include ..:eMa:.. Programming 4 09-25-2003 01:59 AM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration