Errors in examples from PGI OpenACC Compilers Getting Statt

I have copied from the posts the exact c code for example 1 and example 2 in the

PGI OpenACC Compilers Getting Started Guide Version 12.3.

These are the examples on pages 8 and 11 continues to 12.

I am getting literaly the same error when I try and compile them.

The errors are:

GC-S-0025-Illegal character: ‘\37777777742’ (a2.c: 42)
PGC-S-0025-Illegal character: ‘\37777777600’ (a2.c: 42)
PGC-S-0025-Illegal character: ‘\37777777634’ (a2.c: 42)
PGC-S-0037-Syntax error: Recovery attempted by deleting ‘(’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-S-0025-Illegal character: ‘\134’ (a2.c: 43)
PGC-F-0008-Error limit exceeded (a2.c: 43)
PGC/x86 Linux 12.5-0: compilation aborted
[james@james OpenACC]$ gedit a2.c
[james@james OpenACC]$ gedit a2.c
[james@james OpenACC]$ gedit a2.c
[james@james OpenACC]$ gedit a1.c
[james@james OpenACC]$ pgcc -acc a1.c
PGC-S-0025-Illegal character: ‘\37777777742’ (a1.c: 37)
PGC-S-0025-Illegal character: ‘\37777777600’ (a1.c: 37)
PGC-S-0025-Illegal character: ‘\37777777634’ (a1.c: 37)
PGC-S-0037-Syntax error: Recovery attempted by deleting ‘(’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-S-0025-Illegal character: ‘\134’ (a1.c: 38)
PGC-F-0008-Error limit exceeded (a1.c: 38)
PGC/x86 Linux 12.5-0: compilation aborted



I have looked at the code and I have not seen any illegal character on the lines that the compiler delineates. I diid notice that it happens in the last few lines of each program and the errors (except for the specific lines in the programs) are the same

Please tellme wht I am doing wrong.

Thanks in advance.

THX 1138

Check your printf statements. For the example on page 8, there is a single printf statement that when cutting/pasting the double quotes do not translate correctly. Here is the printf statement from this example.

printf( "%d errors found\n", errs );