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

error

with the help of apnt195, i had modified the STM32 usb hid application program.

during compilation, it showing the following error

demo.c(33): error: #147: declaration is incompatible with "BYTE OutReport" (declared at line 20 of "demo.h")
demo.c(56): warning: #167-D: argument of type "BYTE *" is incompatible with parameter of type "char *"
demo.c(58): warning: #167-D: argument of type "BYTE *" is incompatible with parameter of type "char *"

Parents
  • Note that char may be signed or unsigned.

    BYTE sounds very much like an unsigned data type.

    Have you checked into making char unsigned?

    By the way - why so very short subject for your thread? How much information is there in "error"? Why not "Error 147 while compiling USB sample code" or something similar?

    Next thing - was this the application note?
    www.onarm.com/.../apnt195.asp

    In that case - why not supply that information in the post?

Reply
  • Note that char may be signed or unsigned.

    BYTE sounds very much like an unsigned data type.

    Have you checked into making char unsigned?

    By the way - why so very short subject for your thread? How much information is there in "error"? Why not "Error 147 while compiling USB sample code" or something similar?

    Next thing - was this the application note?
    www.onarm.com/.../apnt195.asp

    In that case - why not supply that information in the post?

Children