Advertisement
Guest User

Untitled

a guest
Jul 16th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.27 KB | None | 0 0
  1.  
  2. -------------- Build: Debug in ppp12 (compiler: GNU GCC Compiler)---------------
  3.  
  4. g++ -I/usr/include/freetype2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_THREAD_SAFE -D_REENTRANT -std=c++14 -g -std=c++14 -c /home/username/codeblocks_proj/ppp12/Graph.cpp -o obj/Debug/Graph.o
  5. /home/username/codeblocks_proj/ppp12/Graph.cpp: In member function ‘void Graph_lib::Polygon::add(Graph_lib::Point)’:
  6. /home/username/codeblocks_proj/ppp12/Graph.cpp:74:19: error: no matching function for call to ‘Graph_lib::Point::Point(int, int)’
  7. Point ignore(0,0);
  8. ^
  9. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  10. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  11. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  12. struct Point {
  13. ^
  14. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  15. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  16. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  17. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  18. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  19. /home/username/codeblocks_proj/ppp12/Graph.cpp: In constructor ‘Graph_lib::Function::Function(double (*)(double), double, double, Graph_lib::Point, int, double, double)’:
  20. /home/username/codeblocks_proj/ppp12/Graph.cpp:148:53: error: no matching function for call to ‘Graph_lib::Point::Point(int, int)’
  21. add(Point(xy.x+int(r*xscale),xy.y-int(f(r)*yscale)));
  22. ^
  23. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  24. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  25. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  26. struct Point {
  27. ^
  28. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  29. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  30. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  31. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  32. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  33. /home/username/codeblocks_proj/ppp12/Graph.cpp: In constructor ‘Graph_lib::Axis::Axis(Graph_lib::Axis::Orientation, Graph_lib::Point, int, int, std::__cxx11::string)’:
  34. /home/username/codeblocks_proj/ppp12/Graph.cpp:169:18: error: no matching function for call to ‘Graph_lib::Point::Point(int, int)’
  35. :label(Point(0,0),lab)
  36. ^
  37. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  38. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  39. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  40. struct Point {
  41. ^
  42. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  43. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  44. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  45. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  46. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  47. /home/username/codeblocks_proj/ppp12/Graph.cpp:175:37: error: no matching function for call to ‘Graph_lib::Point::Point(int, int&)’
  48. Shape::add(Point(xy.x+length,xy.y)); // axis line
  49. ^
  50. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  51. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  52. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  53. struct Point {
  54. ^
  55. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  56. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  57. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  58. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  59. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  60. /home/username/codeblocks_proj/ppp12/Graph.cpp:180:30: error: no matching function for call to ‘Graph_lib::Point::Point(int&, int&)’
  61. notches.add(Point(x,xy.y),Point(x,xy.y-5));
  62. ^
  63. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  64. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  65. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  66. struct Point {
  67. ^
  68. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  69. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  70. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  71. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  72. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  73. /home/username/codeblocks_proj/ppp12/Graph.cpp:180:46: error: no matching function for call to ‘Graph_lib::Point::Point(int&, int)’
  74. notches.add(Point(x,xy.y),Point(x,xy.y-5));
  75. ^
  76. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  77. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  78. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  79. struct Point {
  80. ^
  81. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  82. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  83. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  84. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  85. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  86. /home/username/codeblocks_proj/ppp12/Graph.cpp:190:37: error: no matching function for call to ‘Graph_lib::Point::Point(int&, int)’
  87. Shape::add(Point(xy.x,xy.y-length));
  88. ^
  89. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  90. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  91. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  92. struct Point {
  93. ^
  94. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  95. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  96. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  97. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  98. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  99. /home/username/codeblocks_proj/ppp12/Graph.cpp:195:29: error: no matching function for call to ‘Graph_lib::Point::Point(int&, int&)’
  100. notches.add(Point(xy.x,y),Point(xy.x+5,y));
  101. ^
  102. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  103. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  104. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  105. struct Point {
  106. ^
  107. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  108. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  109. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  110. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  111. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  112. /home/username/codeblocks_proj/ppp12/Graph.cpp:195:45: error: no matching function for call to ‘Graph_lib::Point::Point(int, int&)’
  113. notches.add(Point(xy.x,y),Point(xy.x+5,y));
  114. ^
  115. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:4:0,
  116. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  117. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  118. struct Point {
  119. ^
  120. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  121. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  122. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  123. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  124. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  125. /home/username/codeblocks_proj/ppp12/Graph.cpp: In function ‘bool Graph_lib::can_open(const string&)’:
  126. /home/username/codeblocks_proj/ppp12/Graph.cpp:313:9: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return
  127. return ff;
  128. ^
  129. Process terminated with status 1 (0 minute(s), 1 second(s))
  130. 10 error(s), 0 warning(s) (0 minute(s), 1 second(s))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement