Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
Re: [SLE] gcc won't compile hello world
  • From: Jim Sabatke <jsabatke@xxxxxxxxxx>
  • Date: Mon, 28 May 2001 18:15:29 -0500
  • Message-id: <3B12DC11.20805@xxxxxxxxxx>
Yup, that works for me too; but that is 'C', not C++. I'm an old 'C' programmer who is trying to learn C++. The problem only happens when you use iostreams.h, which is C++ specific.

EagleIce wrote:

On Tuesday 29 May 2001 00:37, Jim Sabatke wrote:

There is an apparent problem with gcc 2.95.2 ,according to the list, that I am experiencing.

The following code will not compile:

#include <iostream>

int main() {

cout << "Hello world\n";


It doesn't get much simpler than that. I've been told that this problem
has been fixed in gcc 2.95.3. Will there be an rpm for it?



I'm not that much of a programmer but this one compiles properly with my gcc 2.95.2:

#include <stdio.h>
int main()
printf("Hello World\n");
return (0);



Jim Sabatke
SuSE 7.1 Linux
Kernel - 2.4.0

It's all a matter of brain cells. You see every drink of liquor you take kills a thousand brain cells. But that doesn't much matter cause we got billions more. Now, first the sadness cells die, so you smile real big; And then the quiet cells go so you just say everything real loud for no reason at all. But that's OK because then the stupid cells go next, so everything you say is real smart. And finally come the memory cells; they's tough sons-o-bitches to kill - The Legend of Bagger Vance

< Previous Next >
Follow Ups