home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / lib / bug / 597 < prev    next >
Encoding:
Text File  |  1992-11-16  |  5.6 KB  |  128 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!adm.csc.ncsu.edu!dbt
  3. From: dbt@adm.csc.ncsu.edu (David B. Teague)
  4. Subject: Problems with gcc2.3.1 and iostream/(iostream|streambuf).h
  5. Message-ID: <1992Nov16.215937.4654@ncsu.edu>
  6. Followup-To: bray@wcuvax1.wcu.edu
  7. Sender: gnulists@ai.mit.edu
  8. Organization: wcuvax1.wcu.edu (CS Dept, Western Carolina University)
  9. Distribution: gnu
  10. Date: Mon, 16 Nov 1992 21:59:37 GMT
  11. Approved: bug-lib-g++@prep.ai.mit.edu
  12. Lines: 114
  13.  
  14.   I have been attempting to make what according to the README is libg++
  15. 2.1, using gcc 2.3.1, on a Gateway 486 box running Consensys sysV.4
  16. (Double Yuck!).
  17.   This is done without the -O flag: with -O, the compiler apparently
  18. generates multiple instances of labels, which the assembler balks at,
  19. but that is a separate problem.
  20.   After the libg++ make output, I will include a test.cc program that David 
  21. Teague wrote to explore this, and the resulting error messages.
  22.   Note that there is nothing obviously wrong with these include files.
  23.  
  24. --Jim
  25.  
  26.  
  27. tinuviel#cd /usr/local/libg++
  28. tinuviel#make clean
  29. /bin/sh ./config.status
  30. Created "Makefile" in /usr/local/libg++ using "config/mh-sysv4"
  31. ./config.status is unchanged
  32.  
  33. [ STUFF DELETED ]
  34.  
  35. tinuviel#make all
  36.  
  37.  
  38. rootme=`pwd` ; export rootme; CC="gcc `if [ -f ${rootme}/../gcc/gcc ] ; then echo -I${rootme}/../gcc/include ; else echo ; fi`"; export CC; ./utils/gen-params  >tmp-params.h
  39. mv tmp-params.h _G_config.h
  40. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
  41. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c Obstack.cc
  42. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c builtin.cc
  43. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c regex.cc
  44.  
  45.  
  46. Everything seems to be ok until here in the make:
  47.  
  48.  
  49. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c Regex.cc
  50. Regex.cc: In method `Regex::Regex (const char *, int (=  0 ), int (=  40 ), const char * (=  0 ))':
  51. Regex.cc:52: warning: ANSI C++ forbids implicit conversion from `void *' in assignment
  52. Regex.cc:59: warning: ANSI C++ forbids implicit conversion from `void *' in assignment
  53. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c String.cc
  54. In file included from ./../iostream/iostream.h:25, from ./../iostream/stream.h:7, from ./String.h:26, from String.cc:25:
  55. ./../iostream/streambuf.h:359: warning: type specifier omitted for parameter
  56. ./../iostream/streambuf.h:359: parse error before `,'
  57. ./../iostream/streambuf.h:360: warning: type specifier omitted for parameter
  58. ./../iostream/streambuf.h:360: parse error before `)'
  59. In file included from ./../iostream/stream.h:7, from ./String.h:26, from String.cc:25:
  60. ./../iostream/iostream.h:60: warning: type specifier omitted for parameter
  61. ./../iostream/iostream.h:60: parse error before `)'
  62. ./../iostream/iostream.h:152: warning: type specifier omitted for parameter
  63. ./../iostream/iostream.h:152: parse error before `)'
  64. ./../iostream/iostream.h:225: warning: type specifier omitted for parameter
  65. ./../iostream/iostream.h:225: parse error before `)'
  66. ./../iostream/iostream.h:247: warning: type specifier omitted for parameter
  67. ./../iostream/iostream.h:247: parse error before `)'
  68. ./../iostream/iostream.h: In method `class streambuf::istream& iostream::vscan (...)':
  69. ./../iostream/iostream.h:226: `format' undeclared (first use this function)
  70. ./../iostream/iostream.h:226: (Each undeclared identifier is reported only once
  71. ./../iostream/iostream.h:226: for each function it appears in.)
  72. ./../iostream/iostream.h:226: `args' undeclared (first use this function)
  73. ./../iostream/iostream.h:226: warning: control reaches end of non-void function
  74. ./../iostream/iostream.h: In method `class ostream& iostream::vform (...)':
  75. ./../iostream/iostream.h:248: `format' undeclared (first use this function)
  76. ./../iostream/iostream.h:248: `args' undeclared (first use this function)
  77. ./../iostream/iostream.h:248: warning: control reaches end of non-void function
  78. make[2]: *** [String.o] Error 1
  79. make[1]: *** [in-src] Error 1
  80. make: *** [all-libg++] Error 1
  81.  
  82. tinuviel#./config.status is unchanged
  83. Created "Makefile" in /usr/local/libg++ using "config/mh-sysv4"
  84. ./config.status is unchanged
  85. tinuviel#
  86.  
  87. test.cc:
  88. #include "iostream.h"
  89. struct T
  90. {
  91.    int i = 5;
  92. };
  93.  
  94. T t;
  95.  
  96. main ()
  97. {
  98.   cout << t.i << "\n";
  99. }
  100.  
  101. Here are the results:
  102.  
  103. In file included from iostream.h:25, from test.cc:1:
  104. streambuf.h:359: warning: type specifier omitted for parameter
  105. streambuf.h:359: parse error before `,'
  106. streambuf.h:360: warning: type specifier omitted for parameter
  107. streambuf.h:360: parse error before `)'
  108. In file included from test.cc:1:
  109. iostream.h:60: warning: type specifier omitted for parameter
  110. iostream.h:60: parse error before `)'
  111. iostream.h:152: warning: type specifier omitted for parameter
  112. iostream.h:152: parse error before `)'
  113. iostream.h:225: warning: type specifier omitted for parameter
  114. iostream.h:225: parse error before `)'
  115. iostream.h:247: warning: type specifier omitted for parameter
  116. iostream.h:247: parse error before `)'
  117. iostream.h: In method `class streambuf::istream& iostream::vscan (...)':
  118. iostream.h:226: `format' undeclared (first use this function)
  119. iostream.h:226: (Each undeclared identifier is reported only once
  120. iostream.h:226: for each function it appears in.)
  121. iostream.h:226: `args' undeclared (first use this function)
  122. iostream.h:226: warning: control reaches end of non-void function
  123. iostream.h: In method `class ostream& iostream::vform (...)':
  124. iostream.h:248: `format' undeclared (first use this function)
  125. iostream.h:248: `args' undeclared (first use this function)
  126. iostream.h:248: warning: control reaches end of non-void function
  127.  
  128.