This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with gcc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]