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).
Sorry - correction:
I want to use the preprocessor directive #MESSAGE. But I get always an error.
According to http://www.keil.com/c166/selector.asp the current version is v7.00 - so you have a very old version.
Are you sure that your old version supports the #message directive?
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!