[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory



David Christensen wrote:
> I'm attempting to compile C++ "hello, world!" on Debian 6.0.3 i386
> and seem to be missing iostream.h (?).  libstdc++6 seems to be
> installed (?).  Do I need one of these packages?

No.  The problem is that C++ has changed significantly over the
years.  You are operating from obsolete documentation.  The new names
for the header files no longer contain a .h on the end.

Try compiling this program instead.

#include <iostream>
int main ()
{
  std::cout << "hello, world!" << std::endl;
  return 0;
}

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: