* GCC System Headers
@ 2004-03-24 5:53 Eddie Diener
2004-03-25 12:02 ` llewelly
0 siblings, 1 reply; 2+ messages in thread
From: Eddie Diener @ 2004-03-24 5:53 UTC (permalink / raw)
To: gcc-help
How does GCC/G++ know where to look for its system header files ?
I am using GCC/G++ with MingW/DevCpp on Windows. In the DevCpp distribution,
which used GCC 3.2.3, the C header files are in the DevCpp\include directory
and the C++ header files are off of the DevCpp\include\c++ directory. Yet
when I downloaded the latest MingW/GCC/G++ implementation, 3.3.1, there are
no C header files in the release and the C++ header files are placed off of
the DevCpp\include\c++\3.3.1 directory.
So I am confused. First, why there are no C header files in the
distribution, and secondly how GCC/G++ knows where to find its system header
files.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GCC System Headers
2004-03-24 5:53 GCC System Headers Eddie Diener
@ 2004-03-25 12:02 ` llewelly
0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-03-25 12:02 UTC (permalink / raw)
To: Eddie Diener; +Cc: gcc-help
"Eddie Diener" <eddielee@tropicsoft.com> writes:
> How does GCC/G++ know where to look for its system header files ?
It's based on stuff figured out by the 'configure' script, when gcc is
configured, before it is built from source code.
You can run:
$ gcc -v hello.cc
to see where gcc looks for header files.
If you need to chage where GCC looks for header from the command line,
see http://xrl.us/btf4 and read about -I, -I-, and so forth. -I is
usually sufficient.
> I am using GCC/G++ with MingW/DevCpp on Windows. In the DevCpp distribution,
> which used GCC 3.2.3, the C header files are in the DevCpp\include directory
> and the C++ header files are off of the DevCpp\include\c++ directory. Yet
> when I downloaded the latest MingW/GCC/G++ implementation, 3.3.1, there are
> no C header files in the release and the C++ header files are placed off of
> the DevCpp\include\c++\3.3.1 directory.
>
> So I am confused. First, why there are no C header files in the
> distribution,
[snip]
GCC does not come with an implementation of the standard C library; it
relies on the systm provided C library.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-25 1:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-24 5:53 GCC System Headers Eddie Diener
2004-03-25 12:02 ` llewelly
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).