Advertisement
Guest User

Untitled

a guest
May 23rd, 2022
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. g++ -c ./src/main.cpp -I./lib/SFML-2.5.1/include
  2. g++ -c ./src/Sortable.cpp -I./lib/SFML-2.5.1/include
  3. g++ -c ./src/SortAlgorithms.cpp -I./lib/SFML-2.5.1/include
  4. g++ -c ./src/SortController.cpp -I./lib/SFML-2.5.1/include
  5. g++ -c ./src/Utils.cpp -I./lib/SFML-2.5.1/include
  6. g++ *.o -o sorting-visualizer -L./lib/SFML-2.5.1/lib
  7. /usr/bin/ld: main.o: warning: relocation against `_ZN2sf5Color5BlackE' in read-only section `.text'
  8. /usr/bin/ld: main.o: in function `main':
  9. main.cpp:(.text+0x78): undefined reference to `sf::String::String(char const*, std::locale const&)'
  10. /usr/bin/ld: main.cpp:(.text+0x96): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
  11. /usr/bin/ld: main.cpp:(.text+0xc9): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
  12. /usr/bin/ld: main.cpp:(.text+0xfb): undefined reference to `sf::Window::setFramerateLimit(unsigned int)'
  13. /usr/bin/ld: main.cpp:(.text+0x12e): undefined reference to `sf::RenderWindow::getSize() const'
  14. /usr/bin/ld: main.cpp:(.text+0x691): undefined reference to `sf::Window::close()'
  15. /usr/bin/ld: main.cpp:(.text+0x6aa): undefined reference to `sf::Window::pollEvent(sf::Event&)'
  16. /usr/bin/ld: main.cpp:(.text+0x6c4): undefined reference to `sf::Color::Black'
  17. /usr/bin/ld: main.cpp:(.text+0x6cf): undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
  18. /usr/bin/ld: main.cpp:(.text+0x772): undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
  19. /usr/bin/ld: main.cpp:(.text+0x7e9): undefined reference to `sf::Transformable::setPosition(sf::Vector2<float> const&)'
  20. /usr/bin/ld: main.cpp:(.text+0x802): undefined reference to `sf::RenderStates::Default'
  21. /usr/bin/ld: main.cpp:(.text+0x80d): undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
  22. /usr/bin/ld: main.cpp:(.text+0x85b): undefined reference to `sf::Window::display()'
  23. /usr/bin/ld: main.cpp:(.text+0x86a): undefined reference to `sf::Window::isOpen() const'
  24. /usr/bin/ld: main.cpp:(.text+0x8a4): undefined reference to `sf::RenderWindow::~RenderWindow()'
  25. /usr/bin/ld: main.cpp:(.text+0x965): undefined reference to `sf::RenderWindow::~RenderWindow()'
  26. /usr/bin/ld: main.o: in function `sf::RectangleShape::~RectangleShape()':
  27. main.cpp:(.text._ZN2sf14RectangleShapeD2Ev[_ZN2sf14RectangleShapeD5Ev]+0xf): undefined reference to `vtable for sf::RectangleShape'
  28. /usr/bin/ld: main.cpp:(.text._ZN2sf14RectangleShapeD2Ev[_ZN2sf14RectangleShapeD5Ev]+0x1d): undefined reference to `vtable for sf::RectangleShape'
  29. /usr/bin/ld: main.cpp:(.text._ZN2sf14RectangleShapeD2Ev[_ZN2sf14RectangleShapeD5Ev]+0x31): undefined reference to `sf::Shape::~Shape()'
  30. /usr/bin/ld: Sortable.o: in function `Sortable::Sortable(float, float, int)':
  31. Sortable.cpp:(.text+0x1b): undefined reference to `sf::Color::White'
  32. /usr/bin/ld: Sortable.o: in function `Sortable::shape()':
  33. Sortable.cpp:(.text+0x9b): undefined reference to `sf::RectangleShape::RectangleShape(sf::Vector2<float> const&)'
  34. /usr/bin/ld: SortAlgorithms.o: in function `algo::insertionSort(std::vector<Sortable, std::allocator<Sortable> >&, int)':
  35. SortAlgorithms.cpp:(.text+0x25a): undefined reference to `sf::Color::Red'
  36. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x2a7): undefined reference to `sf::milliseconds(int)'
  37. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x2af): undefined reference to `sf::sleep(sf::Time)'
  38. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x2cd): undefined reference to `sf::Color::White'
  39. /usr/bin/ld: SortAlgorithms.o: in function `algoUtils::swap(std::vector<Sortable, std::allocator<Sortable> >&, int, Sortable&, Sortable&)':
  40. SortAlgorithms.cpp:(.text+0x63b): undefined reference to `sf::Color::Red'
  41. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x647): undefined reference to `sf::Color::Red'
  42. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x69f): undefined reference to `sf::milliseconds(int)'
  43. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x6a7): undefined reference to `sf::sleep(sf::Time)'
  44. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x6b1): undefined reference to `sf::Color::White'
  45. /usr/bin/ld: SortAlgorithms.cpp:(.text+0x6bd): undefined reference to `sf::Color::White'
  46. /usr/bin/ld: SortController.o: in function `SortController::startSort(int)':
  47. SortController.cpp:(.text+0x4fc): undefined reference to `sf::Clock::Clock()'
  48. /usr/bin/ld: SortController.cpp:(.text+0x508): undefined reference to `sf::Clock::getElapsedTime() const'
  49. /usr/bin/ld: SortController.cpp:(.text+0x518): undefined reference to `sf::Time::asMilliseconds() const'
  50. /usr/bin/ld: SortController.cpp:(.text+0x614): undefined reference to `sf::Clock::getElapsedTime() const'
  51. /usr/bin/ld: SortController.cpp:(.text+0x624): undefined reference to `sf::Time::asMilliseconds() const'
  52. /usr/bin/ld: SortController.o: in function `SortController::checkSortAnim()':
  53. SortController.cpp:(.text+0x730): undefined reference to `sf::Color::Green'
  54. /usr/bin/ld: SortController.cpp:(.text+0x740): undefined reference to `sf::milliseconds(int)'
  55. /usr/bin/ld: SortController.cpp:(.text+0x748): undefined reference to `sf::sleep(sf::Time)'
  56. /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
  57. collect2: error: ld returned 1 exit status
  58. make: *** [Makefile:27: compile] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement