How can I add a #define to the linker command file in BCLIDE?


If the #define is not already present in a header file or C program module, create a new header file for it and list the file in the Include Files list. Select the Include Files tab and click Add File. In the Open dialog, choose the file and click OK.

It is also possible to specify #define values in the COMMAND= line in the Options tab in BCLIDE. This value is passed through to the compiler to use during code generation:


Please note:

  • This setting only applies to code generation during linking. Compiling C code into object files must not rely on this definition.

  • If VALUE has any embedded spaces, you must enclose it in quotes.

  • If VALUE has any embedded semicolon characters, you must enclose it in quotes.