This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: memcpy and memcmp


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


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