| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Message-ID: | <002301c4d623$ecfcb3c0$ef2da653@johvi.vnet.ee> |
| From: | "Alexandr" <alekst AT hot DOT ee> |
| To: | <djgpp AT delorie DOT com> |
| References: | <000a01c4d61b$340c5120$ef2da653 AT johvi DOT vnet DOT ee> <200411300038 DOT iAU0cNhl023816 AT envy DOT delorie DOT com> |
| Subject: | Re: HELP, plz ... |
| Date: | Mon, 29 Nov 2004 16:58:45 +0200 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 6.00.2800.1409 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1409 |
| X-ViruNet-MailScanner-Information: | Please contact the ISP for more information |
| X-ViruNet-MailScanner: | Found to be clean |
| X-MailScanner-From: | alekst AT hot DOT ee |
| Reply-To: | djgpp AT delorie DOT com |
Thanx!
But what about older versions of DJGPP?
Best wishes,
Alex.
----- Original Message -----
From: "DJ Delorie" <dj AT delorie DOT com>
To: <djgpp AT delorie DOT com>
Sent: Tuesday, November 30, 2004 2:38 AM
Subject: Re: HELP, plz ...
>
> > #include <iostream.h>
> > int main () {
> > cout << "test" << endl;
> > return 0;
> > }
>
> This is an invalid program. Try:
>
> #include <iostream>
>
> using namespace std;
>
> int main(void)
> {
> cout << "hello" << endl;
> return 0;
> }
>
>
> > comp. string:
> > gcc test.cpp -o test.exe -Wno-deprecated
>
> This is the wrong command line. For C++ programs, use the C++ compiler:
>
> g++ test.cpp -o test.exe
>
> (or gxx for DOS systems)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |