This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]