looking for sources

I'm using gcc version 4.4.5 on a Ubuntu 10.10 (Maverick-Meerkat) System. Now i'm searching for the source codes of the gcc. I found a file printf.c in /usr/share/gettext/intl/printf.c. But i'm looking for the codes which are used for the cout stream, ostream and ofstream to learn how these streams are coded and understand using using streams. I'd loaded the gcc from gnu.org, but i'm not able to find the sources i'm looking for. Is anyone here who may tell me what i must do to get/find the original codes?

thank you very much
Karl
If you download Code::Blocks from the software center it will come with "iostream" which is the header file you are looking for. You don't have to use Code::Blocks if you don't want to, it's simply a lazy way that I know of to get the source code you are looking for.
I'm running 11.04 but I assume that the layout is roughly similar:

/usr/share/gccxml-0.9/GCC/ for the whole STL.
/usr/share/gccxml-0.9/GCC/3.2 for some streams.

If you wanted to look at the source that builds GCC then you could grab that from various places.
Topic archived. No new replies allowed.