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

please help with incompatible arguments

Hello,

I am using uvision3 with realview compiler. I am busy working on an open source code, which was originally designed for an environment like visual studio. The program compiles fine there.

As soon as I compile it in uvision, i get the following error:

openPOWERLINK_v1.2.0\EplStack\EplApiGeneric.c(1453): error: #167: argument of type "__packed unsigned long *" is incompatible with parameter of type "void *"

I would appreciate any suggestions

Parents
  • openPOWERLINK_v1.2.0\EplStack\EplApiGeneric.c(1453): error: #167: argument of type "__packed unsigned long *" is incompatible with parameter of type "void *"

    I would suspect the "__packed" qualifier.

    The compiler has to do special tricks when accessing a packed structure; You're passing a "packed" structure via a plain, vanilla void* pointer - so how will the user of that pointer know whether or not to do those special tricks...?

Reply
  • openPOWERLINK_v1.2.0\EplStack\EplApiGeneric.c(1453): error: #167: argument of type "__packed unsigned long *" is incompatible with parameter of type "void *"

    I would suspect the "__packed" qualifier.

    The compiler has to do special tricks when accessing a packed structure; You're passing a "packed" structure via a plain, vanilla void* pointer - so how will the user of that pointer know whether or not to do those special tricks...?

Children