home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / bug / 2168 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.5 KB  |  45 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!lynchpin.mtkgc.COM!samborn
  3. From: samborn@lynchpin.mtkgc.COM (Kevin Samborn)
  4. Subject: Using g++2.1 with standard C library on SunOS 4.1.1 Rev B.
  5. Message-ID: <9208211741.AA09577@lynchpin.mtkgc.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 21 Aug 1992 17:41:02 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 32
  12.  
  13. I am trying to use g++2.1 on SunOS 4.1.1 Rev B.  
  14.  
  15. Whenever I include standard include files, (in this case coming from
  16. /usr/lang/SC1.0/CC/include), I get the errors similar to the following:
  17.  
  18. In file included from /usr/lang/SC1.0/include/CC/malloc.h:9,
  19.                  from /usr/lang/SC1.0/include/CC/stdlib.h:21,
  20.                  from Main.C:1:
  21. /usr/lang/SC1.0/include/CC/alloca.h:10:
  22.         declaration of `char * __builtin_alloca (int)'
  23. <built-in>:0: conflicts with built-in
  24.         declaration `void * __builtin_alloca (int)'
  25. In file included from /usr/openwin3/include/X11/Xos.h:69,
  26.                  from /usr/openwin3/include/X11/Intrinsic.h:37,
  27.                  from Main.C:2:
  28. /usr/lang/SC1.0/include/CC/strings.h:22:
  29.         declaration of `unsigned int  strlen (const char *)'
  30. <built-in>:0: conflicts with built-in
  31.         declaration `int  strlen (const char *)'
  32.  
  33.  
  34. This happens even when I pass the -fno-builtin option to g++.
  35.  
  36. Is there anyway to turn off type checking for builtin functions?
  37.  
  38. thanks,
  39. kevin samborn
  40. --
  41. kevin samborn
  42. Sakura Global Capital
  43. samborn@mtkgc.com
  44.  
  45.