🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #253

Re: built-in prototypes?

#253
From: bothner
Date: Thu, 03 Sep 1992 10:21
14 lines
1118 bytes
./../g++-include/string.h:28: declaration of `long unsigned int  strlen (const char *)'
<built-in>:0: conflicts with built-in declaration `int  strlen (const char *)'

This is because of conflicts in the definition of size_t.
size_t is pre-defined (using the macro SIZE_TYPE) in gcc.
libg++ extracts a definition of size_t from the system header
files (in the script libg++/utils/gen-params).  So basically,
gcc's definition of size_t as int (which contradicts ANSI, but
matches most recent releases of SunOS) does not match your
system's header files.  You could fix gcc (by changing its
definition of SIZE_TYPE).

	--Per Bothner
Cygnus Support     bothner@cygnus.com
Technical Details
Message-ID: <9209040021.AA06965@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner
References: <9209011942.AA15781@musclefish.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!bothner
From: bothner@cygnus.com
Subject: Re: built-in prototypes?
Message-ID: <9209040021.AA06965@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
References: <9209011942.AA15781@musclefish.com>
Distribution: gnu
Date: Thu, 3 Sep 1992 10:21:52 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 15