Re: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- From: Bob Proulx <bob@xxxxxxxxxx>
- Date: Wed, 21 Dec 2011 19:26:52 -0700
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
- Follow-Ups:
- Re: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- From: David Christensen
- Re: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- References:
- Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- From: David Christensen
- Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- Prev by Date: Re: Ownership of external usb hard drive
- Next by Date: Re: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- Previous by thread: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- Next by thread: Re: Debian 6.0.3 i386 - g++ hello.cpp - error: iostream.h: No such file or directory
- Index(es):
Relevant Pages
|