This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: iostream header missing?


On Sat, Jun 17, 2000 at 01:31:15PM +0200, Gerald Marewo wrote:
> Hi all.
> 
> Here is a simple c program I tried compiling and it failed:
> 
> 	#include <iostream>
> 	main() {
> 	  cout << "Hello, world!" << endl;
> 	  }

It's not C, but C++, a totally different language.

> 
> The output I got is follows:
> 	
> 	t.cpp:1: iostream: No such file or directory
> 
> The version of gcc I am using is:
> 
> 	Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.1/specs
> 	gcc version 2.7.2.1

Well, I suppose it's on the README of octave but your g++ is too old
(supposing it's the same as gcc ; isn't there an egcs or eg++ command ?)
It predates the 1997 ANSI C++ standard.

So you should update to something more recent, like gcc-2.95.2
The homepage is at http://sourceware.cygnus.com/gcc/

	regards, gael

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]