Advertisement
Guest User

kompilering

a guest
Feb 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. lukpo970@li15-8:Listan$ g++17 list_test.cc List.cc test_main.o
  2. list_test.cc: In function ‘void ____C_A_T_C_H____T_E_S_T____23()’:
  3. list_test.cc:84:10: error: ‘Smart_Step’ was not declared in this scope
  4. for (Smart_Step it = t.begin(); it != t.end(); ++it) {
  5. ^~~~~~~~~~
  6. list_test.cc:84:37: error: ‘it’ was not declared in this scope
  7. for (Smart_Step it = t.begin(); it != t.end(); ++it) {
  8. ^~
  9. list_test.cc:84:37: note: suggested alternative: ‘t’
  10. for (Smart_Step it = t.begin(); it != t.end(); ++it) {
  11. ^~
  12. t
  13. List.cc: In member function ‘List::Smart_Step& List::Smart_Step::operator++()’:
  14. List.cc:171:12: error: invalid initialization of reference of type ‘List::Smart_Step&’ from expression of type ‘List::Node*’
  15. return pos;
  16. ^~~
  17. List.cc: At global scope:
  18. List.cc:174:6: error: prototype for ‘bool List::Smart_Step::operator!=(List::Smart_Step) const’ does not match any in class ‘List::Smart_Step’
  19. bool List::Smart_Step::operator != (Smart_Step const rhs) const {
  20. ^~~~
  21. In file included from List.cc:1:0:
  22. List.h:40:14: error: candidate is: bool List::Smart_Step::operator!=(int) const
  23. bool operator != (int const rhs) const;
  24. ^~~~~~~~
  25. List.cc:184:1: error: ‘List::Smart_Step::Smart_Step’ names the constructor, not the type
  26. List::Smart_Step::Smart_Step List::Smart_Step::operator = (Smart_Step const& rhs) { //flytt/copy?
  27. ^~~~
  28. List.cc:189:1: error: ‘Smart_Step’ does not name a type
  29. Smart_Step::Smart_Step List::Smart_Step::operator * (Smart_Step*) {
  30. ^~~~~~~~~~
  31. lukpo970@li15-8:Listan$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement