| www.delorie.com/archives/browse.cgi | search |
| 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: | <ihrqntgo5rd50bnmq8lr76pt7bsn1r6sk3@4ax.com> |
| References: | <3B7CEDE9 DOT 17D0DCC9 AT hotmsil DOT com> |
| X-Newsreader: | Forte Agent 1.8/32.548 |
| MIME-Version: | 1.0 |
| Cache-Post-Path: | news.vaxxine.com!unknown AT ppp296 DOT digi-t3 DOT st-cath DOT niagara DOT net |
| X-Cache: | nntpcache 2.3.3 (see http://www.nntpcache.org/) |
| NNTP-Posting-Host: | Newsfeeds.com |
| Lines: | 58 |
| X-Comments: | This message was posted through Newsfeeds.com |
| X-Comments2: | IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. |
| X-Report: | Report abuse to "abuse AT Newsfeeds DOT com" |
| Organization: | Newsfeeds.com http://www.newsfeeds.com 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
>
>problem.
>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 "
>
use:
gxx -o a.exe a.cpp
or
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;
}
-----------
Thanks
MCheu
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |