Article View: gnu.gcc.bug
Article #983Using g++2.1 with standard C library on SunOS 4.1.1 Rev B.
From: Kevin Samborn
Date: Fri, 21 Aug 1992 17:41
Date: Fri, 21 Aug 1992 17:41
31 lines
1544 bytes
1544 bytes
I am trying to use g++2.1 on SunOS 4.1.1 Rev B.
Whenever I include standard include files, (in this case coming from
/usr/lang/SC1.0/CC/include), I get the errors similar to the following:
In file included from /usr/lang/SC1.0/include/CC/malloc.h:9,
from /usr/lang/SC1.0/include/CC/stdlib.h:21,
from Main.C:1:
/usr/lang/SC1.0/include/CC/alloca.h:10:
declaration of `char * __builtin_alloca (int)'
<built-in>:0: conflicts with built-in
declaration `void * __builtin_alloca (int)'
In file included from /usr/openwin3/include/X11/Xos.h:69,
from /usr/openwin3/include/X11/Intrinsic.h:37,
from Main.C:2:
/usr/lang/SC1.0/include/CC/strings.h:22:
declaration of `unsigned int strlen (const char *)'
<built-in>:0: conflicts with built-in
declaration `int strlen (const char *)'
This happens even when I pass the -fno-builtin option to g++.
Is there anyway to turn off type checking for builtin functions?
thanks,
kevin samborn
--
kevin samborn
Sakura Global Capital
samborn@mtkgc.com
Technical Details
Message-ID:
<9208211741.AA09577@lynchpin.mtkgc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!lynchpin.mtkgc.COM!sambornShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!lynchpin.mtkgc.COM!samborn From: samborn@lynchpin.mtkgc.COM (Kevin Samborn) Subject: Using g++2.1 with standard C library on SunOS 4.1.1 Rev B. Message-ID: <9208211741.AA09577@lynchpin.mtkgc.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 21 Aug 1992 17:41:02 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 32