title: GCC compilation errors related to while statement
body: <p>When trying to compile this short C program using GCC I get these errors:</p>
  
  <pre><code>expected ‘)’ before numeric constant
  make: *** [file3_5.o] Error 1
  stray ‘\210’ in program
  stray ‘\227’ in program
  stray ‘\342’ in program 
  </code></pre>
  
  <p>Eclipse (Juno) points all of these errors to one line of code:</p>
  
  <pre><code>while(fgets(line ,STRSIZE∗NFIELDS, fp))
  </code></pre>
  
  <p>Using the following statement to compile:</p>
  
  <pre><code>gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"file3_5.d" -MT"file3_5.d" -o "file3_5.o" "../file3_5.c"
  </code></pre>
  
  <p>Here is the program I am trying to compile:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  #define STRSIZE 100
  #define NFIELDS 9
  int main()
  {
      char inputfile[]= "/home/ty/workspace/OpenCoursware_Exercises/Assign_   /stateoutflow0708.txt";
    /* define all of the fields */
    char state_code_org[STRSIZE];
    char country_code_org[STRSIZE];
    char state_code_dest[STRSIZE];
    char country_code_dest[STRSIZE];
    char state_abbrv[STRSIZE];
    char state_name[STRSIZE];
    char line[STRSIZE*NFIELDS];
    int return_num = 0;
    int exmpt_num=0;
    int aggr_agi= 0;
    long total=0;
  
    /* file related */
    int fields_read = 0;
    FILE* fp=fopen(inputfile,"r");
    if(fp==NULL)
    {
      fprintf(stderr, "Cannot open file\n");
      exit(-1);
    }
    /* skip first line */
    fgets(line, STRSIZE*NFIELDS,fp);
    /* print the header */
    printf ("%-30s,%6s\n","STATE","TOTAL");
    printf("---------------------------------------\n");
    while(fgets(line ,STRSIZE∗NFIELDS, fp))
    {
        /* parse the fields */
        fields_read=sscanf(line,"%s %s %s %s %s %s %d %d %d",
                state_code_org,
                country_code_org,
                state_code_dest,
                country_code_dest,
                state_abbrv,
                state_name,
                &amp;return_num,
                &amp;exmpt_num,
                &amp;aggr_agi);
        if(strcmp(state_code_org, "\"25\"")==0)
        {
            printf("%-30s, %6d\n", state_name, aggr_agi);
            total += aggr_agi;
        }
    }
    /* print the header */
    printf(" ----------------------------------------\n");
    printf("%-30s,%6lu\n","TOTAL",total);
    fclose(fp);
    return 0;
   }
  </code></pre>