Article View: gnu.gcc.help
Article #51846Re: builtin prototypes
From: Marek MAKOWSKI
Date: Tue, 23 Mar 1993 10:14
Date: Tue, 23 Mar 1993 10:14
34 lines
1888 bytes
1888 bytes
Doug Gerecht 806 1031 (dougg@kentek.com) wrote:
: I'm in the process of switching from gcc 2.1 to gcc 2.3.3. I'm
: building for the MIPS 3051 processor. I'm having problems with the
: function prototypes for memcpy() and memcmp(). The compiler seems
: unhappy with whatever prototypes (and hence, whatever function
: definition) I throw at it. I've tried:
:
: extern void *memcpy(void *,const void *,size_t);
: extern int memcmp(const void *,const void *,size_t);
:
: and:
:
: extern char *memcpy(char *,char *,int);
: extern int memcmp(char *,char *,int);
:
: It won't accept either as well as numerous variations on the theme. I
: always get the message:
:
: ./defs.h:337: warning: conflicting types for built-in function `memcpy'
: ./defs.h:337: warning: type mismatch with previous external decl
: <built-in>:0: warning: previous external decl of `memcpy'
:
I recommend to avoid "private" prototypes for the library functions
(but make sure, that you include <memory.h> for those functions).
Good luck,
Marek Makowski
--
Marek Makowski | Email: marek@iiasa.ac.at
International Institute | Phone: +43 02236 71.5210
for Applied System Analysis | Fax: +43 02236 71.313
A-2361 Laxenburg, Austria | Telex: 079137 iiasa a
Technical Details
Message-ID:
<1993Mar23.101447.2322@iiasa.ac.at>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!iiasa.ac.at!marekReferences:
<DOUGG.93Mar22111108@kbsw3.kentek.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,39629ac12eb0ce97 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-23 06:38:42 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!iiasa.ac.at!marek From: marek@iiasa.ac.at (Marek MAKOWSKI) Subject: Re: builtin prototypes Message-ID: <1993Mar23.101447.2322@iiasa.ac.at> Organization: IIASA, Laxenburg, Austria X-Newsreader: TIN [version 1.1 PL6] References: <DOUGG.93Mar22111108@kbsw3.kentek.com> Distribution: all Date: Tue, 23 Mar 1993 10:14:47 GMT Lines: 34