home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3234 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!mtl.t.u-tokyo.ac.JP!ksakai
  2. From: ksakai@mtl.t.u-tokyo.ac.JP
  3. Newsgroups: gnu.gcc.bug
  4. Subject: size_t problem
  5. Date: 22 Jan 1993 21:44:24 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 40
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301221858.AA18258@vesper.mtl.t.u-tokyo.ac.jp>
  12.  
  13.  I have made gcc-2.3.3 successfully on RISC news (running newsos 4.1R)
  14. with configured "--target=mips-sony-newsos4.1", then tried to make
  15. libg++-2.3, but next error messages appeared.
  16.  
  17. ----
  18. gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.
  19. cc
  20. In file included from ./std.h:26, from AllocRing.cc:22:
  21. ./../g++-include/string.h:28: declaration of `long int  strlen (const char *)'
  22. <built-in>:0: conflicts with built-in declaration `unsigned int  strlen (const c
  23. har *)'
  24. make[1]: *** [AllocRing.o] Error 1
  25. make: *** [in-src] Error 1
  26. ----
  27.  
  28.  On the Omron Luna88k's gcc-2.3.3 (configured "--target=m88k-omron-luna
  29. --with-gnu-ld"), same problem have occurred as this.
  30.  
  31. ----
  32. gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
  33. In file included from ./std.h:26, from AllocRing.cc:22:
  34. ./../g++-include/string.h:28: declaration of `long int  strlen (const char *)'
  35. <built-in>:0: conflicts with built-in declaration `unsigned int  strlen (const char *)'
  36. make[1]: *** [AllocRing.o] Error 1
  37. make: *** [in-src] Error 1
  38. ----
  39.  
  40.  In the libg++/g++include/string.h, written as this.
  41.  
  42. ----
  43. // NOTE: If you get a error message from g++ that this declaration
  44. // conflicts with a <built-in> declaration of strlen(), that usually
  45. // indicates that __SIZE_TYPE__ is incorrectly defined by gcc.
  46. // Fix or add SIZE_TYPE in the appropriate file in gcc/config/*.h.
  47. ----
  48.  
  49.  So, I think, on both systems, size_t should be defined as "long int".
  50.  
  51.                                 Kiyotaka Sakai(ksakai@mtl.t.u-tokyo.ac.jp)
  52.  
  53.