This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: undefined reference error __mempcpy
- From: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>
- To: "cygwin" <cygwin at cygwin dot com>
- Date: Tue, 29 Apr 2003 00:12:58 -0500
- Subject: RE: undefined reference error __mempcpy
> 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/