This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

compling error query

hi can anyone tell me wat does this error mean???
C214:'argument':conversion:pointer to non pointer mean??

Parents
  • Even if the code is almost totally unreadable, because of the lack of formatting, it's obvious that you have errors.

    This function expects an unsigned character as parameter. That is one single character.

    void lcddata (unsigned char value);
    

    This call does not send a single character, but a pointer to an array of characters:

    lcddata("ERROR");
    

    Why shouldn't the compiler complain when you send a pointer to a function that isn't expecting a pointer?

Reply
  • Even if the code is almost totally unreadable, because of the lack of formatting, it's obvious that you have errors.

    This function expects an unsigned character as parameter. That is one single character.

    void lcddata (unsigned char value);
    

    This call does not send a single character, but a pointer to an array of characters:

    lcddata("ERROR");
    

    Why shouldn't the compiler complain when you send a pointer to a function that isn't expecting a pointer?

Children