I want to use the preprocessor directive #WARNING. But I get always an error.
Example: #message "This is my own message"
Compile error: error 315: unknown #directive 'message'
I use the keil C166 compiler V4.11 (and I couldn't use a other one).
I'm not sure if the old compiler version supports the #message directive. How can I check that? But I believe that this old compiler version (but I have to use that) is the problem. Do anybody knows a other possibility to 'print' a message in the compiler output, which will be supported by the V4.11 compiler?
Obviously: Read the Manual!
"Do anybody knows a other possibility to 'print' a message in the compiler output"
The only such thing defined in the 'C' standard is #error - anything else is entirely proprietary. Details of proprietary language extensions will, as always, be found in the documentation.
I'm afraid there's no escaping Please read the manual!