Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Gary R. Van Sickle" To: "cygwin" Subject: RE: undefined reference error __mempcpy Date: Tue, 29 Apr 2003 00:12:58 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <005201c30e09$44a19300$5b0366d2@adcpc91DJKIM> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h3T5D3m07496 > 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/