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

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