Passing options to the C preprocessor

Because the compiler does not recognize cpp options other than -I directly on the command line, you must pass them through the -W option. For example, if a program contains #ifdef directives that test the existence of a symbol named ASSERTS, you can define that symbol to cpp by compiling with a command like:

  xlf95 conditional.F -WF,-DASSERTS


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us