This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: memcpy and memcmp
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Hermione Granger" <herm_oh_ninny at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 13 Oct 2002 20:49:45 -0200
- Subject: Re: memcpy and memcmp
- Organization: GCC Team, Red Hat
- References: <F99l3Xemb2VswIDrcAM00004e72@hotmail.com>
On Oct 12, 2002, "Hermione Granger" <herm_oh_ninny@hotmail.com> wrote:
> For some reason this keeps giving me error with not find memcpy or memcmp.
You may have better luck getting help if you post the exact error
message that you get.
Most likely, the code you're trying to compile fails to include the
standard header file that declares memcpy and memcmp as functions with
C linkage, perhaps introducing them with explicit declarations without
extern "C", which cause them to have C++ linkage, which implies name
mangling and means the definitions in the C library are not going to
match.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer