Advertisement
GbossMega9

ErrorMessages

Sep 27th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. g++ -Wall -c "14_5d.cpp" -I /home/pi/C++/14_5DelegatingToALinkedList/ -fpermissive -Wreorder -Wparentheses (in directory: /home/pi/C++/14_5DelegatingToALinkedList)
  2. In file included from 14_5d.cpp:4:0:
  3. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:76:8: warning: extra qualification ‘PartsList::’ on member ‘Iterate’ [-fpermissive]
  4. void PartsList::Iterate(void (Part::*f)()const) const;
  5. ^
  6. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:96:33: warning: ISO C++ forbids declaration of ‘operator+’ with no type [-fpermissive]
  7. operator+(const PartsCatalog &);
  8. ^
  9. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp: In member function ‘void PartsCatalog::ShowAll()’:
  10. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:97:47: error: invalid use of non-static member function ‘virtual void Part::Display() const’
  11. void ShowAll() { thePartsList.Iterate(Part::Display); }
  12. ^
  13. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp: In constructor ‘CarPart::CarPart(USHORT, ULONG)’:
  14. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:33:10: warning: ‘CarPart::itsModelYear’ will be initialized after [-Wreorder]
  15. USHORT itsModelYear;
  16. ^
  17. 14_5d.cpp:17:17: warning: base ‘Part’ [-Wreorder]
  18. Part(partNumber)
  19. ^
  20. 14_5d.cpp:15:1: warning: when initialized here [-Wreorder]
  21. CarPart::CarPart(USHORT year, ULONG partNumber):
  22. ^
  23. In file included from 14_5d.cpp:4:0:
  24. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp: In constructor ‘AirPlanePart::AirPlanePart(USHORT, ULONG)’:
  25. /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:48:11: warning: ‘AirPlanePart::itsEngineNumber’ will be initialized after [-Wreorder]
  26. USHORT itsEngineNumber;
  27. ^
  28. 14_5d.cpp:22:17: warning: base ‘Part’ [-Wreorder]
  29. Part(PartNumber)
  30. ^
  31. 14_5d.cpp:20:1: warning: when initialized here [-Wreorder]
  32. AirPlanePart::AirPlanePart(USHORT EngineNumber, ULONG PartNumber):
  33. ^
  34. 14_5d.cpp: In member function ‘void PartsList::Iterate(void (Part::*)() const) const’:
  35. 14_5d.cpp:119:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  36. while (pNode = pNode->GetNext());
  37. ^
  38. Compilation failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement