Mail Archives: djgpp/2001/08/17/15:30:29

From: mcheu <mpcheu AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem compiling c++
Date: Fri, 17 Aug 2001 15:27:33 -0400
Message-ID: <>
References: <3B7CEDE9 DOT 17D0DCC9 AT hotmsil DOT com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Cache-Post-Path:!unknown AT ppp296 DOT digi-t3 DOT st-cath DOT niagara DOT net
X-Cache: nntpcache 2.3.3 (see
Lines: 58
X-Comments: This message was posted through
X-Comments2: IMPORTANT: does not condone, nor support, spam or any illegal or copyrighted postings.
X-Report: Report abuse to "abuse AT Newsfeeds DOT com"
Organization: 90,000+ UNCENSORED Newsgroups.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 17 Aug 2001 10:17:38 GMT, Christopher all
<Chrisall AT hotmsil DOT com> wrote:

>Hi ,
>         Thanks Hans  for the help in installation !! Now i have another
>I am using
>gcc version 2.95.2 19991024 (release)
>I have problems compiling my trivial  program.
>#include <iostream.h>
>void main()
>   cout << "My first C++ program\n\n";
>I tried " gcc a.cpp "


gxx -o a.exe a.cpp


gpp -o a.exe a.cpp

gcc is for compiling C programs.   

Also, while your code will compile, it's seems like it's more in vogue
to do it like this:

#include <iostream>
using namespace std;

int main (void)
	cout << "My first C++ program\n\n";
	return 0;



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

- Raw text -

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