Guest User

compiler error

a guest
Sep 14th, 2011
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.95 KB | None | 0 0
  1. 1>------ Build started: Project: matrix, Configuration: Debug Win32 ------
  2. 1> matrix.cpp
  3. 1>c:\reid\matrix\matrix.cpp(35): error C2143: syntax error : missing ';' before '+'
  4. 1>c:\reid\matrix\matrix.cpp(35): error C2761: '{ctor}' : member function redeclaration not allowed
  5. 1>c:\reid\matrix\matrix.cpp(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  6. 1>c:\reid\matrix\matrix.cpp(37): error C2065: 'nRow' : undeclared identifier
  7. 1>c:\reid\matrix\matrix.cpp(37): error C2065: 'nColumn' : undeclared identifier
  8. 1>c:\reid\matrix\matrix.cpp(38): error C2065: 'nRow' : undeclared identifier
  9. 1>c:\reid\matrix\matrix.cpp(38): error C2065: 'nColumn' : undeclared identifier
  10. 1>c:\reid\matrix\matrix.cpp(40): error C2065: 'nRow' : undeclared identifier
  11. 1>c:\reid\matrix\matrix.cpp(41): error C2065: 'nColumn' : undeclared identifier
  12. 1>c:\reid\matrix\matrix.cpp(42): error C2065: 'mat' : undeclared identifier
  13. 1>c:\reid\matrix\matrix.cpp(43): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  14. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  15. 1>c:\reid\matrix\matrix.cpp(48): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  16. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  17. 1>c:\reid\matrix\matrix.cpp(50): error C2617: 'operator +' : inconsistent return statement
  18. 1> c:\reid\matrix\matrix.cpp(35) : see declaration of 'operator +'
  19. 1>c:\reid\matrix\matrix.cpp(52): error C2143: syntax error : missing ';' before '-'
  20. 1>c:\reid\matrix\matrix.cpp(52): error C2761: '{ctor}' : member function redeclaration not allowed
  21. 1>c:\reid\matrix\matrix.cpp(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  22. 1>c:\reid\matrix\matrix.cpp(54): error C2065: 'nRow' : undeclared identifier
  23. 1>c:\reid\matrix\matrix.cpp(54): error C2065: 'nColumn' : undeclared identifier
  24. 1>c:\reid\matrix\matrix.cpp(55): error C2065: 'nRow' : undeclared identifier
  25. 1>c:\reid\matrix\matrix.cpp(55): error C2065: 'nColumn' : undeclared identifier
  26. 1>c:\reid\matrix\matrix.cpp(57): error C2065: 'nRow' : undeclared identifier
  27. 1>c:\reid\matrix\matrix.cpp(58): error C2065: 'nColumn' : undeclared identifier
  28. 1>c:\reid\matrix\matrix.cpp(59): error C2065: 'mat' : undeclared identifier
  29. 1>c:\reid\matrix\matrix.cpp(60): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  30. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  31. 1>c:\reid\matrix\matrix.cpp(65): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  32. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  33. 1>c:\reid\matrix\matrix.cpp(67): error C2617: 'operator -' : inconsistent return statement
  34. 1> c:\reid\matrix\matrix.cpp(52) : see declaration of 'operator -'
  35. 1>c:\reid\matrix\matrix.cpp(69): error C2143: syntax error : missing ';' before '*'
  36. 1>c:\reid\matrix\matrix.cpp(69): error C2761: '{ctor}' : member function redeclaration not allowed
  37. 1>c:\reid\matrix\matrix.cpp(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  38. 1>c:\reid\matrix\matrix.cpp(71): error C2065: 'nRow' : undeclared identifier
  39. 1>c:\reid\matrix\matrix.cpp(72): error C2065: 'nColumn' : undeclared identifier
  40. 1>c:\reid\matrix\matrix.cpp(74): error C2065: 'nRow' : undeclared identifier
  41. 1>c:\reid\matrix\matrix.cpp(76): error C2065: 'nColumn' : undeclared identifier
  42. 1>c:\reid\matrix\matrix.cpp(77): error C2065: 'mat' : undeclared identifier
  43. 1>c:\reid\matrix\matrix.cpp(78): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  44. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  45. 1>c:\reid\matrix\matrix.cpp(83): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  46. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  47. 1>c:\reid\matrix\matrix.cpp(85): error C2617: 'operator *' : inconsistent return statement
  48. 1> c:\reid\matrix\matrix.cpp(69) : see declaration of 'operator *'
  49. 1>c:\reid\matrix\matrix.cpp(6): error C2084: function 'matrix::matrix(int,int)' already has a body
  50. 1> c:\reid\matrix\matrix.h(13) : see previous definition of '{ctor}'
  51. 1>c:\reid\matrix\matrix.cpp(18): error C2084: function 'void matrix::input(void)' already has a body
  52. 1> c:\reid\matrix\matrix.h(19) : see previous definition of 'input'
  53. 1>c:\reid\matrix\matrix.cpp(26): error C2084: function 'void matrix::out(void)' already has a body
  54. 1> c:\reid\matrix\matrix.h(21) : see previous definition of 'out'
  55. 1>c:\reid\matrix\matrix.cpp(35): error C2143: syntax error : missing ';' before '+'
  56. 1>c:\reid\matrix\matrix.cpp(35): error C2761: '{ctor}' : member function redeclaration not allowed
  57. 1>c:\reid\matrix\matrix.cpp(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  58. 1>c:\reid\matrix\matrix.cpp(36): error C2084: function 'int operator +(matrix)' already has a body
  59. 1> c:\reid\matrix\matrix.cpp(35) : see previous definition of '+'
  60. 1>c:\reid\matrix\matrix.cpp(37): error C2065: 'nRow' : undeclared identifier
  61. 1>c:\reid\matrix\matrix.cpp(37): error C2065: 'nColumn' : undeclared identifier
  62. 1>c:\reid\matrix\matrix.cpp(38): error C2065: 'nRow' : undeclared identifier
  63. 1>c:\reid\matrix\matrix.cpp(38): error C2065: 'nColumn' : undeclared identifier
  64. 1>c:\reid\matrix\matrix.cpp(40): error C2065: 'nRow' : undeclared identifier
  65. 1>c:\reid\matrix\matrix.cpp(41): error C2065: 'nColumn' : undeclared identifier
  66. 1>c:\reid\matrix\matrix.cpp(42): error C2065: 'mat' : undeclared identifier
  67. 1>c:\reid\matrix\matrix.cpp(52): error C2143: syntax error : missing ';' before '-'
  68. 1>c:\reid\matrix\matrix.cpp(52): error C2761: '{ctor}' : member function redeclaration not allowed
  69. 1>c:\reid\matrix\matrix.cpp(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  70. 1>c:\reid\matrix\matrix.cpp(53): error C2084: function 'int operator -(matrix)' already has a body
  71. 1> c:\reid\matrix\matrix.cpp(52) : see previous definition of '-'
  72. 1>c:\reid\matrix\matrix.cpp(54): error C2065: 'nRow' : undeclared identifier
  73. 1>c:\reid\matrix\matrix.cpp(54): error C2065: 'nColumn' : undeclared identifier
  74. 1>c:\reid\matrix\matrix.cpp(55): error C2065: 'nRow' : undeclared identifier
  75. 1>c:\reid\matrix\matrix.cpp(55): error C2065: 'nColumn' : undeclared identifier
  76. 1>c:\reid\matrix\matrix.cpp(57): error C2065: 'nRow' : undeclared identifier
  77. 1>c:\reid\matrix\matrix.cpp(58): error C2065: 'nColumn' : undeclared identifier
  78. 1>c:\reid\matrix\matrix.cpp(59): error C2065: 'mat' : undeclared identifier
  79. 1>c:\reid\matrix\matrix.cpp(69): error C2143: syntax error : missing ';' before '*'
  80. 1>c:\reid\matrix\matrix.cpp(69): error C2761: '{ctor}' : member function redeclaration not allowed
  81. 1>c:\reid\matrix\matrix.cpp(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  82. 1>c:\reid\matrix\matrix.cpp(70): error C2084: function 'int operator *(matrix)' already has a body
  83. 1> c:\reid\matrix\matrix.cpp(69) : see previous definition of '*'
  84. 1>c:\reid\matrix\matrix.cpp(71): error C2065: 'nRow' : undeclared identifier
  85. 1>c:\reid\matrix\matrix.cpp(72): error C2065: 'nColumn' : undeclared identifier
  86. 1>c:\reid\matrix\matrix.cpp(74): error C2065: 'nRow' : undeclared identifier
  87. 1>c:\reid\matrix\matrix.cpp(76): error C2065: 'nColumn' : undeclared identifier
  88. 1>c:\reid\matrix\matrix.cpp(77): error C2065: 'mat' : undeclared identifier
  89. 1> main.cpp
  90. 1>c:\reid\matrix\matrix.cpp(35): error C2143: syntax error : missing ';' before '+'
  91. 1>c:\reid\matrix\matrix.cpp(35): error C2761: '{ctor}' : member function redeclaration not allowed
  92. 1>c:\reid\matrix\matrix.cpp(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  93. 1>c:\reid\matrix\matrix.cpp(37): error C2065: 'nRow' : undeclared identifier
  94. 1>c:\reid\matrix\matrix.cpp(37): error C2065: 'nColumn' : undeclared identifier
  95. 1>c:\reid\matrix\matrix.cpp(38): error C2065: 'nRow' : undeclared identifier
  96. 1>c:\reid\matrix\matrix.cpp(38): error C2065: 'nColumn' : undeclared identifier
  97. 1>c:\reid\matrix\matrix.cpp(40): error C2065: 'nRow' : undeclared identifier
  98. 1>c:\reid\matrix\matrix.cpp(41): error C2065: 'nColumn' : undeclared identifier
  99. 1>c:\reid\matrix\matrix.cpp(42): error C2065: 'mat' : undeclared identifier
  100. 1>c:\reid\matrix\matrix.cpp(43): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  101. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  102. 1>c:\reid\matrix\matrix.cpp(48): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  103. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  104. 1>c:\reid\matrix\matrix.cpp(50): error C2617: 'operator +' : inconsistent return statement
  105. 1> c:\reid\matrix\matrix.cpp(35) : see declaration of 'operator +'
  106. 1>c:\reid\matrix\matrix.cpp(52): error C2143: syntax error : missing ';' before '-'
  107. 1>c:\reid\matrix\matrix.cpp(52): error C2761: '{ctor}' : member function redeclaration not allowed
  108. 1>c:\reid\matrix\matrix.cpp(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  109. 1>c:\reid\matrix\matrix.cpp(54): error C2065: 'nRow' : undeclared identifier
  110. 1>c:\reid\matrix\matrix.cpp(54): error C2065: 'nColumn' : undeclared identifier
  111. 1>c:\reid\matrix\matrix.cpp(55): error C2065: 'nRow' : undeclared identifier
  112. 1>c:\reid\matrix\matrix.cpp(55): error C2065: 'nColumn' : undeclared identifier
  113. 1>c:\reid\matrix\matrix.cpp(57): error C2065: 'nRow' : undeclared identifier
  114. 1>c:\reid\matrix\matrix.cpp(58): error C2065: 'nColumn' : undeclared identifier
  115. 1>c:\reid\matrix\matrix.cpp(59): error C2065: 'mat' : undeclared identifier
  116. 1>c:\reid\matrix\matrix.cpp(60): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  117. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  118. 1>c:\reid\matrix\matrix.cpp(65): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  119. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  120. 1>c:\reid\matrix\matrix.cpp(67): error C2617: 'operator -' : inconsistent return statement
  121. 1> c:\reid\matrix\matrix.cpp(52) : see declaration of 'operator -'
  122. 1>c:\reid\matrix\matrix.cpp(69): error C2143: syntax error : missing ';' before '*'
  123. 1>c:\reid\matrix\matrix.cpp(69): error C2761: '{ctor}' : member function redeclaration not allowed
  124. 1>c:\reid\matrix\matrix.cpp(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  125. 1>c:\reid\matrix\matrix.cpp(71): error C2065: 'nRow' : undeclared identifier
  126. 1>c:\reid\matrix\matrix.cpp(72): error C2065: 'nColumn' : undeclared identifier
  127. 1>c:\reid\matrix\matrix.cpp(74): error C2065: 'nRow' : undeclared identifier
  128. 1>c:\reid\matrix\matrix.cpp(76): error C2065: 'nColumn' : undeclared identifier
  129. 1>c:\reid\matrix\matrix.cpp(77): error C2065: 'mat' : undeclared identifier
  130. 1>c:\reid\matrix\matrix.cpp(78): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  131. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  132. 1>c:\reid\matrix\matrix.cpp(83): error C2440: 'return' : cannot convert from 'matrix' to 'int'
  133. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  134. 1>c:\reid\matrix\matrix.cpp(85): error C2617: 'operator *' : inconsistent return statement
  135. 1> c:\reid\matrix\matrix.cpp(69) : see declaration of 'operator *'
  136. 1> Generating Code...
  137. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment