I’m getting a “Syntax error in #if directive” error message for some C code I’m trying to port to Linux pgcc. I cannot seem to find any documentation for the preprocessor other than command-line options?!
The code in question is:
where VERSION and DLL are both #defined previously in the file.
This works fine in gcc 4.1.1 as well as Visual Studio.
Any hints to what the “syntax error” is, or a pointer to PGI’s preprocessor documentation?