🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.uu.comp.os.linux
Article #15

need help compiling with g++

#15
From: lemmie
Date: Thu, 04 Apr 1996 00:00
25 lines
1208 bytes
i'm running linux 1.2.13 with gcc (i believe it's 2.7.1) installed.  i'm 
trying to learn c++ but i cannot get the gcc compiler to compile even this
simple program :

#include <iostream.h>

main()
{
  cout << "hello world\n";
}

when i type "g++ hello.cc", i get the following error message:
  
  hello.cc:1: iostream.h: No such file or directory 

this would lead me to believe that the header file, iostream.h is not where
gcc expects to find it.  compiling a similar program in c works alright and
i get the correct output.

anyone know what i can do to fix this?  

thanks in advance,
marc hammond
--
lemmie@eden.rutgers.edu
Technical Details
Message-ID: <4jvnra$gbo@er5.rutgers.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,60282fafd9a98031,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: faa64,60282fafd9a98031,start
X-Google-Attributes: gidfaa64,public
X-Google-Thread: f5910,60282fafd9a98031,start
X-Google-Attributes: gidf5910,public
From: lemmie@eden.rutgers.edu (lemmie)
Subject: need help compiling with g++
Date: 1996/04/04
Message-ID: <4jvnra$gbo@er5.rutgers.edu>
X-Deja-AN: 145782647
organization: Rutgers University
newsgroups: alt.uu.comp.os.linux,alt.os.linux,gnu.gcc.help