Hello,
I am trying a demo version of the PGI compiler (vers5.2-1 on RedHat 7.2). The code I have to compile works perfectly using gcc or icc. With pgcc, I have got several errors:
- PGC-S-0103-Illegal operand types for comparison operator
For example:
#include <stdio.h>
int main(){
char c1;
c1='\0';
if( c1 == NULL ) printf ("hello");
return 1;
}
It may not be regular ANSI C code, but still, it is widely accepted. I could fix that by changing the PGI stddef.h file, replacing #define NULL ((void *)0 by #define NULL 0.
- PGC-F-0000-Internal compiler error. Macro recursion stack size exceeded
It happen for several functions of my program. Do you know a way to fix that ?