Article View: gnu.gcc.help
Article #42268gcc2.7.2: memchr declaration in gcc and g++ conflict
From: B.G. Mahesh
Date: Tue, 19 Dec 1995 00:00
Date: Tue, 19 Dec 1995 00:00
20 lines
1293 bytes
1293 bytes
Hardware: Sparc5 OS: SunOS 4.1.4 GCC: 2.7.2 G++: libg++-2.7.1 I get the following error when I compile my application, /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.7.2/include/memory.h:14: declaration of C function `void * memchr(const void *, int, long unsigned int)' conflicts with /usr/local/lib/g++-include/std/cstring.h:58: previous declaration `const void * memchr(const void *, int, long unsigned int)' here make: *** [BasicTypes.o] Error 1 Is there a patch to fix this problem? I get such conflicts for other str functions also [strdup, strcmp etc] -- B.G. Mahesh | Work : bmahesh@dalmatian.com System Analyst | Home : mahesh@mahesh.com The Dalmatian Group Inc. | Home page: http://www.jagunet.com/~mahesh/ User Interface Specialists | FAQ Maintainer of TeleUSE GUI Builder
Technical Details
Message-ID:
<4b77dq$7fu@shado.jaguNET.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,44d6e6bce3eef885,start X-Google-Attributes: gid11318c,public From: mahesh@jaguNET.com (B.G. Mahesh) Subject: gcc2.7.2: memchr declaration in gcc and g++ conflict Date: 1995/12/19 Message-ID: <4b77dq$7fu@shado.jaguNET.com> X-Deja-AN: 122307814 distribution: usa organization: The Dalmatian Group, Inc. reply-to: bmahesh@dalmatian.com newsgroups: gnu.gcc.help