Id like to see how this CodevisionAVR compiler compares to the keil compiler, but I cant get it to compile a function where I pass a character string...
#define MSG_A " " #define MSG_B " "
void Update_LCD(char* first_line, char* second_line) { //Do Something }
void main (void) { Update_LCD("Hello", "World"); //Doesnt work Update_LCD( MSG_A MSG_B); //Doesnt work }
This compiles and works fine with the Keil, but with the CodevisionAVR I get a "function parameter #1 incompatible with its declaration" error. Is the way Im doing it violate some ANSI C rule, or does Codevision need to have it done differently?