pgcc Preprocessor Error: Documentation?!

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?


Hi Matt,

It’s most likely a problem with the values being used fo VERSION and DLL. What are these being defined to?

  • Mat

Yup. Someone was mixing C/C++ style comments thus leading to bizarre syntax issues. Using ‘-B’ fixed it right up.