www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/16/21:43:33

Message-ID: <373F8F1F.7B013A89@tcac.net>
Date: Sun, 16 May 1999 20:38:08 -0700
From: TonyX <asusu AT tcac DOT net>
X-Mailer: Mozilla 4.08 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Please help
References: <199905170749 DOT AAA17251 AT smtp6 DOT jps DOT net>
Reply-To: djgpp AT delorie DOT com

--------------C6531EA3DD55ACA83DFE33DD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Heres some code in C++
I think this is what you are trying to do
compile it with this command
gxx your-prog.cpp(or whatever extension)  -o  your-prog.exe

**********************
#include <iostream.h>
int main()
{
    cout <<"HEY, you, I'm alive!\n";
      return 0;
}
***************************
it worked for me, hope this
is the help you need


Tony wrote:

>  Hi, I am a beginning programmer and about every sample program I find
> on Internet when compiled by DJGPP gives me error message like "c://
> c.c:1: parse error before character 0320" Please tell me what is wrong
> with sample program or what is wrong with way I try to compile
> gcc c:/c.c -o myfile.exe -lm
>
> *****Sample program*****
> #include <iostream.h>
>
> void main()
> {
>         cout<<"HEY, you, I'm alive!";
> }
>

--------------C6531EA3DD55ACA83DFE33DD
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Heres some code in C++
<BR>I think this is what you are trying to do
<BR>compile it with this command
<BR>gxx your-prog.cpp(or whatever extension)&nbsp; -o&nbsp; your-prog.exe
<P>**********************
<BR>#include &lt;iostream.h>
<BR>int main()
<BR>{
<BR>&nbsp;&nbsp;&nbsp; cout &lt;&lt;"HEY, you, I'm alive!\n";
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;
<BR>}
<BR>***************************
<BR>it worked for me, hope this
<BR>is the help you need
<BR>&nbsp;
<P>Tony wrote:
<BLOCKQUOTE TYPE=CITE>&nbsp;Hi, I am a beginning programmer and about every
sample program I find on Internet when compiled by DJGPP gives me error
message like "c:// c.c:1: parse error before character 0320" Please tell
me what is wrong with sample program or what is wrong with way I try to
compile
<BR>gcc c:/c.c -o myfile.exe -lm
<P>*****Sample program*****
<BR><FONT FACE="Courier New, Courier">#include &lt;iostream.h></FONT>
<P><FONT FACE="Courier New, Courier">void main()</FONT>
<BR><FONT FACE="Courier New, Courier">{</FONT>
<BR><FONT FACE="Courier New, Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
cout&lt;&lt;"HEY, you, I'm alive!";</FONT>
<BR><FONT FACE="Courier New, Courier">}</FONT>
<BR>&nbsp;</BLOCKQUOTE>
</HTML>

--------------C6531EA3DD55ACA83DFE33DD--

- Raw text -


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