Article View: gnu.g++.help
Article #166What are built-in function declarations?
From: Michael Czeiszperger
Date: Tue, 01 Sep 1992 19:23
Date: Tue, 01 Sep 1992 19:23
28 lines
1638 bytes
1638 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 when 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!
Technical Details
Message-ID:
<1992Sep1.192336.15297@musclefish.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!decwrl!csus.edu!netcom.com!netcomsv!muscle!czeiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!decwrl!csus.edu!netcom.com!netcomsv!muscle!czei From: czei@musclefish.com (Michael Czeiszperger) Newsgroups: gnu.g++.help Subject: What are built-in function declarations? Message-ID: <1992Sep1.192336.15297@musclefish.com> Date: 1 Sep 92 19:23:36 GMT Organization: Muscle Fish Lines: 28