🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42125

memchr declaration in gcc and g++ conflict

#42125
From: B.G. Mahesh
Date: Sat, 13 Jan 1996 00:00
21 lines
1222 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?

-- 
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: <4d9ibl$2nn@shado.jaguNET.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,337feeae43601d18,start
X-Google-Attributes: gid11318c,public
From: mahesh@jaguNET.com (B.G. Mahesh)
Subject: memchr declaration in gcc and g++ conflict
Date: 1996/01/13
Message-ID: <4d9ibl$2nn@shado.jaguNET.com>
X-Deja-AN: 135279395
status: ORS
organization: The Dalmatian Group, Inc.
reply-to: bmahesh@dalmatian.com
newsgroups: gnu.gcc.help