how can I send a string to output window in keil c51 uVision when complete compile?
It's work to use the #warning preprocessor directive. There are several compile switches for different products.So I want to know which compile switches are on when I compiling. Example,I define "#define PRODUCT_SWITCH1 1", then I just want the output window print info such as "PRODUCT_SWITCH1 is on". Thanks.
Use the #warning preprocessor directive. Jon
#warning
With a string being what? I'd have thought that the output by the compiler itself is already quite verbose enough as it is? Why add something to it? And do you really need it after the compile is done, or would output after the build of the project at large (i.e. the linking stage) is finished be sufficient?
I can use "#error",but it will stop compile.
View all questions in Keil forum