Article View: gnu.g++.lib.bug
Article #251built-in prototypes?
From: Michael Czeiszperger
Date: Tue, 01 Sep 1992 19:42
Date: Tue, 01 Sep 1992 19:42
32 lines
2102 bytes
2102 bytes
Hi -- I'm trying to compile libg++-2.2 with gcc-2.2.2 on a Sun3 running SunOS4.1. The problem is, the compiler keeps complaining that the prototypes in g++-includes that come with libg++ don't match the built-in prototypes. I've never heard of built-in prototypes, and can't find an explanation in the docs anywhere. I did fix the include files after compiling gcc using "make fixincludes". Does anyone have an idea of what's going on? gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c AllocRing.cc In file included from ./std.h:26, from AllocRing.cc:22: ./../g++-include/string.h:28: declaration of `long unsigned int strlen (const c har *)' <built-in>:0: conflicts with built-in declaration `int strlen (const char *)' In file included from ./std.h:28, from AllocRing.cc:22: ./../g++-include/unistd.h:92: conflicting types for `int geteuid (...)' /usr/local/lib/gcc-lib/m68k-sun-sunos4.1/2.2.2/include/unistd.h:96: previous dec laration of `short unsigned int geteuid (...)' ./../g++-include/unistd.h:93: conflicting types for `int getegid (...)' /usr/local/lib/gcc-lib/m68k-sun-sunos4.1/2.2.2/include/unistd.h:95: previous dec laration of `short unsigned int getegid (...)' ./../g++-include/unistd.h:94: conflicting types for `int getgid (.. Thanks awfully much for any pointers, including the much expected "you didn't compile gcc correctly" ! Michael Czeiszperger | "II-V-I... to me, this is a hateful progression. Muscle Fish Consulting | In Jazz, they beef it up up by adding extra czei@musclefish.com | partials, but its still the essense of 'bad Berkeley, CA 94710 | 'white person music.'" -- Frank Zappa
Technical Details
Message-ID:
<9209011942.AA15781@musclefish.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!musclefish.COM!czeiShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!musclefish.COM!czei From: czei@musclefish.COM (Michael Czeiszperger) Subject: built-in prototypes? Message-ID: <9209011942.AA15781@musclefish.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 1 Sep 1992 19:42:27 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 33