Mail Archives: djgpp/1999/05/16/21:43:33
--------------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) -o your-prog.exe
<P>**********************
<BR>#include <iostream.h>
<BR>int main()
<BR>{
<BR> cout <<"HEY, you, I'm alive!\n";
<BR> return 0;
<BR>}
<BR>***************************
<BR>it worked for me, hope this
<BR>is the help you need
<BR>
<P>Tony wrote:
<BLOCKQUOTE TYPE=CITE> 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 <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">
cout<<"HEY, you, I'm alive!";</FONT>
<BR><FONT FACE="Courier New, Courier">}</FONT>
<BR> </BLOCKQUOTE>
</HTML>
--------------C6531EA3DD55ACA83DFE33DD--
- Raw text -