I've got the dreaded 'undefined reference to 'memcpy'' error
Posted: Tue Sep 04, 2007 6:47 pm
I've done a search for this and found many people with the same problem. However, I was unable to find the solution.
My error appeared after I declared a large array. Commenting out the array got rid of the error. But... I'm gonna need that array.
My CFLAGS are :
CFLAGS = -Wall -O -floop-optimize2 -nostdinc -I include -ffreestanding -c
I've tried implementing my own memcpy function to no avail. LD still complains.
Has anyone who had this error before been successful in fixing it?
LD 2.17.50, gcc v4.1.2 on Ubuntu feisty.... if it matters.
Vince
My error appeared after I declared a large array. Commenting out the array got rid of the error. But... I'm gonna need that array.
My CFLAGS are :
CFLAGS = -Wall -O -floop-optimize2 -nostdinc -I include -ffreestanding -c
I've tried implementing my own memcpy function to no avail. LD still complains.
Has anyone who had this error before been successful in fixing it?
LD 2.17.50, gcc v4.1.2 on Ubuntu feisty.... if it matters.
Vince