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).
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!