www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/26/03:35:57

Date: Thu, 26 Sep 1996 09:25:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Born Naughty <leemeng AT cyberway DOT com DOT sg>
Cc: djgpp AT delorie DOT com
Subject: Re: Compiling C++ program...
In-Reply-To: <01bbab47$e53b0a20$ee191bca@leemeng.cyberway.com.sg>
Message-Id: <Pine.SUN.3.91.960926092217.16087M-100000@is>
Mime-Version: 1.0

On 25 Sep 1996, Born Naughty wrote:

> I've got djgpp installed, compiling C program is ok, but when I compiled
> the helloworld program using <iostream.h>... I've got error messages not
> understanding what
> cout is all about..

It is usually useful to post the error message(s) you get.
 
> how do I compile a C++ program without appending the header files  at my
> command prompt.
> 
> ie. gcc -(what options?) helloworld.cpp    
> instead of   gcc  helloworld.cpp -(header files) as documented...

	gxx helloword.cpp

(This is all in the FAQ, btw.  Download the file v2/faq201b.zip from the 
same place you get DJGPP and read sections 8.7 and 8.9 there.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019