This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problem with gcc
- To: gcc at gcc dot gnu dot org
- Subject: problem with gcc
- From: "utih kelima" <utih75 at hotmail dot com>
- Date: Wed, 17 Jan 2001 13:08:58 +0800
hi!
I'm jamal ...
I've problem with GNU C that I install
I'm using Sun sparc solaris 2.6 and GNU C ver 2.8.1
then I try to compile the C program named "pay80.c" as below:-
#include <stdio.h>;
#include <ctype.h>;
main()
{
FILE *InFPtr, *OutFPtr, *fptr;
char OutFile[45], tout;
int c, j, k, lt;
long int i;
long int ActualSize=0;
int NumOfFile;
InFPtr = fopen("/disc1/spenns/PROD/APP/GL/DATA/conv2.fil","r");
OutFPtr = fopen("/disc1/spenns/PROD/APP/GL/DATA/conv2.dat","w");
while ( (fgetc(InFPtr)) != EOF )
{
for(i=0; i<79; i++)
fputc(fgetc(InFPtr),OutFPtr);
fputc('\n',OutFPtr);
}
fclose(InFPtr); fclose(OutFPtr);
}
using command
$ gcc pay80.c -o pay80
it give an error like below
$ gcc pay80.c -o pay80
pay80.c:1: `#include' expects "FILENAME" or <FILENAME>
pay80.c:2: `#include' expects "FILENAME" or <FILENAME>
could u tell me what the problem?
regards,
JAMAL
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.