469,647 Members | 1,803 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Headers/Libraries default locations

I have two questions:

1) What are the default directories in which the compiler looks for
standard header files?
2) What are the default directories in which the linker looks for
standard library files?

Thanks,
Nimmi
Jul 22 '05 #1
7 1544
Nimmi Srivastav wrote:
1) What are the default directories in which the compiler looks for
standard header files?
2) What are the default directories in which the linker looks for
standard library files?


The answers depend on the compiler and linker in question. Read the
compiler's documentation for details.
Jul 22 '05 #2
Jeff Schwab wrote:
Nimmi Srivastav wrote:
1) What are the default directories in which the compiler looks for
standard header files?
2) What are the default directories in which the linker looks for
standard library files?

The answers depend on the compiler and linker in question. Read the
compiler's documentation for details.


And note that there may not even be any header files for standard
includes for C++.
Jul 22 '05 #3
Bill Seurer wrote:

Jeff Schwab wrote:
Nimmi Srivastav wrote:
1) What are the default directories in which the compiler looks for
standard header files?
2) What are the default directories in which the linker looks for
standard library files?

The answers depend on the compiler and linker in question. Read the
compiler's documentation for details.


And note that there may not even be any header files for standard
includes for C++.


Just out of curiosity, are you aware of any implementation that doesn't have
file-based standard includes?
Jul 22 '05 #4
In <8b*************************@posting.google.com> ni*************@yahoo.com (Nimmi Srivastav) writes:
I have two questions:

1) What are the default directories in which the compiler looks for
standard header files?
Either platform specific or compiler specific, or both.
2) What are the default directories in which the linker looks for
standard library files?


Ditto.

In other words, the VMS answer will not be the same as the MVS answer
or the Unix answer or the Windows answer. Yet, you have posted your
question only to platform/compiler neutral newsgroups....

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Jul 22 '05 #5
Nimmi Srivastav wrote:
I have two questions:

1) What are the default directories
in which the compiler looks for standard header files?
2) What are the default directories
in which the linker looks for standard library files?


Type

gcc -v empty.c

at your Linux prompt.

Jul 22 '05 #6
Nimmi Srivastav wrote:
I have two questions:

1) What are the default directories in which the compiler looks for
standard header files? This is without an iota of doubt, dependent on the compiler/
platform. Please ask compiler specific newsgroups.
gcc specific newsgroups or
microsoft specific newsgroups should get you more.
2) What are the default directories in which the linker looks for
standard library files?


See my answer for the prev. question.

--
Karthik

Humans please 'removeme_' for my real email.
Jul 22 '05 #7
"E. Robert Tisdale" <E.**************@jpl.nasa.gov> writes:
Nimmi Srivastav wrote:
I have two questions:
1) What are the default directories in which the compiler looks for
standard header files?
2) What are the default directories in which the linker looks for
standard library files?


Type

gcc -v empty.c

at your Linux prompt.


What Linux prompt?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
Schroedinger does Shakespeare: "To be *and* not to be"
Jul 22 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

71 posts views Thread by Christopher Benson-Manica | last post: by
2 posts views Thread by Sherwood Botsford | last post: by
9 posts views Thread by Nimmi Srivastav | last post: by
17 posts views Thread by Synic | last post: by
13 posts views Thread by tsoukase | last post: by
2 posts views Thread by Apprentice | last post: by
6 posts views Thread by Bill Spotz | last post: by
74 posts views Thread by Zytan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.