satacker

Untitled

Nov 1st, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. ➜ build git:(main) ✗ ninja -j1
  2. [1/9] Building CXX object CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o
  3. FAILED: CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o
  4. /Library/Developer/CommandLineTools/usr/bin/c++ -std=gnu++20 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -MD -MT CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o -MF CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o.d -o CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o -c /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp
  5. In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
  6. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:552:
  7. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:122:14: error: arithmetic on a pointer to an incomplete type 'maze_cell'
  8. __i_ += __n;
  9. ~~~~ ^
  10. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:117:38: note: in instantiation of member function 'std::__wrap_iter<maze_cell *>::operator+=' requested here
  11. {__wrap_iter __w(*this); __w += __n; return __w;}
  12. ^
  13. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:44:29: note: in instantiation of member function 'std::__wrap_iter<maze_cell *>::operator+' requested here
  14. return data.begin() + row * columns + column;
  15. ^
  16. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
  17. struct maze_cell;
  18. ^
  19. In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
  20. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:552:
  21. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:122:14: error: arithmetic on a pointer to an incomplete type 'const maze_cell'
  22. __i_ += __n;
  23. ~~~~ ^
  24. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:117:38: note: in instantiation of member function 'std::__wrap_iter<const maze_cell *>::operator+=' requested here
  25. {__wrap_iter __w(*this); __w += __n; return __w;}
  26. ^
  27. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:48:29: note: in instantiation of member function 'std::__wrap_iter<const maze_cell *>::operator+' requested here
  28. return data.begin() + row * columns + column;
  29. ^
  30. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
  31. struct maze_cell;
  32. ^
  33. In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
  34. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
  35. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1027:
  36. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/functional:515:
  37. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
  38. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:546:53: error: arithmetic on a pointer to an incomplete type 'maze_cell'
  39. {return static_cast<size_type>(this->__end_ - this->__begin_);}
  40. ~~~~~~~~~~~~ ^
  41. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:1459:26: note: in instantiation of member function 'std::vector<maze_cell>::size' requested here
  42. _LIBCPP_ASSERT(__n < size(), "vector[] index out of bounds");
  43. ^
  44. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:62:20: note: in instantiation of member function 'std::vector<maze_cell>::operator[]' requested here
  45. return data[index];
  46. ^
  47. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
  48. struct maze_cell;
  49. ^
  50. In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
  51. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
  52. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1027:
  53. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/functional:515:
  54. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
  55. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:1460:12: error: subscript of pointer to incomplete type 'maze_cell'
  56. return this->__begin_[__n];
  57. ^~~~~~~~~~~~~~
  58. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:62:20: note: in instantiation of member function 'std::vector<maze_cell>::operator[]' requested here
  59. return data[index];
  60. ^
  61. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
  62. struct maze_cell;
  63. ^
  64. In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
  65. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
  66. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1027:
  67. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/functional:515:
  68. In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
  69. /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:1470:12: error: subscript of pointer to incomplete type 'maze_cell'
  70. return this->__begin_[__n];
  71. ^~~~~~~~~~~~~~
  72. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:66:20: note: in instantiation of member function 'std::vector<maze_cell>::operator[]' requested here
  73. return data[index];
  74. ^
  75. /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
  76. struct maze_cell;
  77. ^
  78. 5 errors generated.
  79. ninja: build stopped: subcommand failed.
  80. ➜ build git:(main) ✗
Advertisement
Add Comment
Please, Sign In to add comment