LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-04-2002, 10:55 AM   #1
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
i want it to read the include!!!!!


Hi every1,

i installes something (doesn't matter what) and it put some headers on /usr/local/include (which are there). Now, i have this in my path in my .bash_profile file. But i compile a file with the header and doesn't find it!

#include <hdf5.h>
int main() {};

icc tryit.c
(oh, oh , i'm a stupid compiler, i don't know where to look, oh oh!)
but gcc tryit.c
do well and do the job

Where do you instruct the compiler to find this without having to put -Ipath like things? is there a easy way?

Hano
 
Old 05-04-2002, 01:53 PM   #2
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
One method is to define the include differently, as:

#include "/usr/local/include/hdf5.h"

-mk
 
Old 05-05-2002, 12:25 AM   #3
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
thats exactly what i dont want to do; because that would mean change hundreds of include lines in random places through recursive branches of multi-dimensional sources; i would be better to do nothing at all and drink a beer

Hano
 
Old 05-05-2002, 12:58 AM   #4
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
thats really my question: whats the difference bteween include <> and include "" ?

Hano
 
Old 05-05-2002, 09:38 AM   #5
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
Include file in <> brackets default to /usr/include. Files enclosed in "" are given with complete paths and are located anywhere. Some versions of UNIX allow for a $INCLUDEPATH system variable where various include paths can be specified the same way as $PATH. You might try that, but don't be too disapointed if it doesn't work. The only other alternative is to create symlinks in /usr/include to where the include files are actually located. -mk
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
include/linux/types.h and include/linux/posix_types.h kpachopoulos Programming 2 11-26-2005 05:52 AM
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration