We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I compile my code I get it error " VM.C(174): error C264: intrinsic '_MemCpy': declaration/activation error "
Declaration of "MemCpy" is : void MemCpy(byte *dst, byte *src, int len, byte flag);
Call of "MemCpy" is : MemCpy((byte *)(&dstres), (byte *)VMDstPtr, DstSize, 0);
Declaration of variable is : extern void *VMDstPtr; extern dwrd dstres; extern byte DstSize;
What is reason of this error?
Problem is that 'memcpy' is a ANSI C function and C51 has a tricky in-line implementation for that.
Just rename your function to memcpy_x or so and it should work fine.