Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Using other preprocessors

By default, the qidl compiler uses cpp as the preprocessor. If you do not have cpp installed, you can use a different preprocessor by using the -cpp or -p compiler option.

Using the Microsoft C preprocessor

You can use the Microsoft C preprocessor by having the qidl compiler invoke cl /E /C, which is done with the following command. Note that the directory containing cl must be included in the PATH environment variable.

qidl -p cl -pa /E -pa /C 

Note: The /C option to preserve comments in the preprocessor output is necessary to support the comment pass-through feature of QIDL.

Using the ARM C/C++ compiler

You can use armcc as the preprocessor using the following command.

Note: The path to the directory containing armcc must be included in your PATH environment variable.

qidl -p armcc -pa=-E -pa=-C 

The -pa=-E option must be used instead of -pa -E. If -pa -E is used, -E is interpreted by qidl as an option to qidl, instead of an option to the preprocessor.

Note: The -C option to preserve comments in the preprocessor output is necessary to support the comment pass-through feature of QIDL.