Location of iostream.h in GCC

c++, gcc

Solution

`<iostream>` is the standard C++ header you need to include. Where it is depends on your platform. On mine, it is in

/usr/include/c++/4.4.3/iostream

You can find out details of `g++` configuration with

g++ --verbose

This prints out, among other things,

--with-gxx-include-dir=/usr/include/c++/4.4

Problem

I am getting back into C++ world after nearly a decade. I have installed GCC and wrote a preliminary program on my Windows 7 box. I have the following question: When I say `#include <iostream.h>` , I get an error saying file not found. I have to say `#include <iostream>` to get it working. Further, when I go to the folder where GCC is installed, I could not find the hearder file by either name. Where is iostream getting picked from?

Original source