Message-ID: <373F8F1F.7B013A89@tcac.net> Date: Sun, 16 May 1999 20:38:08 -0700 From: TonyX 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> Content-Type: multipart/alternative; boundary="------------C6531EA3DD55ACA83DFE33DD" 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 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 > > void main() > { > cout<<"HEY, you, I'm alive!"; > } > --------------C6531EA3DD55ACA83DFE33DD Content-Type: text/html; 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--