undefined reference error __mempcpy
Gary R. Van Sickle
g.r.vansickle@worldnet.att.net
Tue Apr 29 15:48:00 GMT 2003
> gnu-regex.o(.text+0x6556): In function `regerror':
> /home/Administrator/Angel2/build-gcc-ae32000-elf/gcc/fixinc/../../../g
> cc-3.2/gcc/fixinc/gnu-regex.c:5723: undefined reference to `___mempcpy'
I ran into this same problem in my Cygwin->H8S cross. Don't know the cause, but the bandaid is simple enough. Find the "gnu-regex.c" file referenced in the error. Search for "mempcpy"; you'll find one instance of it in a preprocessor construct something like this:
#if HAVE_MEMPCOPY
// Use mempcopy
// ...
#else
// Simulate mempcopy
#endif
Just change the #if to something like:
#if 0 //HAVE_MEMPCOPY
and you should be good to go.
--
Gary R. Van Sickle
Brewer. Patriot.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list