OpenAmiga (234/964)

From:Patrick Roberts
Date:10 Sep 2000 at 09:42:20
Subject:Re: AMIOPEN: vpcc complaining...

BTW- I've changed the code so it works...just wondering why it
bombs out.... (this library I'm porting has some pretty bad C in it.)

-Pat

artix wrote:
>
> Can anyone tell me why vpcc could be having trouble with this:
>
> struct xpr xadd(struct xpr s,struct xpr t, int f)
> {
> unsigned short pe[XDIM+1];
> short e;
>
> /* snip */
>
> *pe=e;
> return *(struct xpr *)pe;
> }
>
> The error I get is on the return statement and looks like this:
>
> vpcc1 internal error:xadd.c: In function `xadd':
> xadd.c:36: Elate call may not be properly defined: `memcpy'
> vpcc1 internal error:xadd.c:36: Elate call may not be properly defined:
> `memcpy'
> vpcc1 internal error:xadd.c:36: Elate call may not be properly defined:
> `memcpy'
> vpcc: failed on xadd.c
>
> Including string.h (which has memcpy proto in Intent) or not makes no
> difference.
>
> Thanks for any help :)
> Pat
> Subscribe/Unsubscribe: open-request@amiga.com
> Amiga FAQ: http://www.amiga.com/faq.html
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html