Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -c ./src/main.cpp -I./lib/SFML-2.5.1/include
- g++ -c ./src/Sortable.cpp -I./lib/SFML-2.5.1/include
- g++ -c ./src/SortAlgorithms.cpp -I./lib/SFML-2.5.1/include
- g++ -c ./src/SortController.cpp -I./lib/SFML-2.5.1/include
- g++ -c ./src/Utils.cpp -I./lib/SFML-2.5.1/include
- g++ *.o -o sorting-visualizer -L./lib/SFML-2.5.1/lib
- /usr/bin/ld: main.o: warning: relocation against `_ZN2sf5Color5BlackE' in read-only section `.text'
- /usr/bin/ld: main.o: in function `main':
- main.cpp:(.text+0x78): undefined reference to `sf::String::String(char const*, std::locale const&)'
- /usr/bin/ld: main.cpp:(.text+0x96): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
- /usr/bin/ld: main.cpp:(.text+0xc9): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
- /usr/bin/ld: main.cpp:(.text+0xfb): undefined reference to `sf::Window::setFramerateLimit(unsigned int)'
- /usr/bin/ld: main.cpp:(.text+0x12e): undefined reference to `sf::RenderWindow::getSize() const'
- /usr/bin/ld: main.cpp:(.text+0x691): undefined reference to `sf::Window::close()'
- /usr/bin/ld: main.cpp:(.text+0x6aa): undefined reference to `sf::Window::pollEvent(sf::Event&)'
- /usr/bin/ld: main.cpp:(.text+0x6c4): undefined reference to `sf::Color::Black'
- /usr/bin/ld: main.cpp:(.text+0x6cf): undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
- /usr/bin/ld: main.cpp:(.text+0x772): undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
- /usr/bin/ld: main.cpp:(.text+0x7e9): undefined reference to `sf::Transformable::setPosition(sf::Vector2<float> const&)'
- /usr/bin/ld: main.cpp:(.text+0x802): undefined reference to `sf::RenderStates::Default'
- /usr/bin/ld: main.cpp:(.text+0x80d): undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
- /usr/bin/ld: main.cpp:(.text+0x85b): undefined reference to `sf::Window::display()'
- /usr/bin/ld: main.cpp:(.text+0x86a): undefined reference to `sf::Window::isOpen() const'
- /usr/bin/ld: main.cpp:(.text+0x8a4): undefined reference to `sf::RenderWindow::~RenderWindow()'
- /usr/bin/ld: main.cpp:(.text+0x965): undefined reference to `sf::RenderWindow::~RenderWindow()'
- /usr/bin/ld: main.o: in function `sf::RectangleShape::~RectangleShape()':
- main.cpp:(.text._ZN2sf14RectangleShapeD2Ev[_ZN2sf14RectangleShapeD5Ev]+0xf): undefined reference to `vtable for sf::RectangleShape'
- /usr/bin/ld: main.cpp:(.text._ZN2sf14RectangleShapeD2Ev[_ZN2sf14RectangleShapeD5Ev]+0x1d): undefined reference to `vtable for sf::RectangleShape'
- /usr/bin/ld: main.cpp:(.text._ZN2sf14RectangleShapeD2Ev[_ZN2sf14RectangleShapeD5Ev]+0x31): undefined reference to `sf::Shape::~Shape()'
- /usr/bin/ld: Sortable.o: in function `Sortable::Sortable(float, float, int)':
- Sortable.cpp:(.text+0x1b): undefined reference to `sf::Color::White'
- /usr/bin/ld: Sortable.o: in function `Sortable::shape()':
- Sortable.cpp:(.text+0x9b): undefined reference to `sf::RectangleShape::RectangleShape(sf::Vector2<float> const&)'
- /usr/bin/ld: SortAlgorithms.o: in function `algo::insertionSort(std::vector<Sortable, std::allocator<Sortable> >&, int)':
- SortAlgorithms.cpp:(.text+0x25a): undefined reference to `sf::Color::Red'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x2a7): undefined reference to `sf::milliseconds(int)'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x2af): undefined reference to `sf::sleep(sf::Time)'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x2cd): undefined reference to `sf::Color::White'
- /usr/bin/ld: SortAlgorithms.o: in function `algoUtils::swap(std::vector<Sortable, std::allocator<Sortable> >&, int, Sortable&, Sortable&)':
- SortAlgorithms.cpp:(.text+0x63b): undefined reference to `sf::Color::Red'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x647): undefined reference to `sf::Color::Red'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x69f): undefined reference to `sf::milliseconds(int)'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x6a7): undefined reference to `sf::sleep(sf::Time)'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x6b1): undefined reference to `sf::Color::White'
- /usr/bin/ld: SortAlgorithms.cpp:(.text+0x6bd): undefined reference to `sf::Color::White'
- /usr/bin/ld: SortController.o: in function `SortController::startSort(int)':
- SortController.cpp:(.text+0x4fc): undefined reference to `sf::Clock::Clock()'
- /usr/bin/ld: SortController.cpp:(.text+0x508): undefined reference to `sf::Clock::getElapsedTime() const'
- /usr/bin/ld: SortController.cpp:(.text+0x518): undefined reference to `sf::Time::asMilliseconds() const'
- /usr/bin/ld: SortController.cpp:(.text+0x614): undefined reference to `sf::Clock::getElapsedTime() const'
- /usr/bin/ld: SortController.cpp:(.text+0x624): undefined reference to `sf::Time::asMilliseconds() const'
- /usr/bin/ld: SortController.o: in function `SortController::checkSortAnim()':
- SortController.cpp:(.text+0x730): undefined reference to `sf::Color::Green'
- /usr/bin/ld: SortController.cpp:(.text+0x740): undefined reference to `sf::milliseconds(int)'
- /usr/bin/ld: SortController.cpp:(.text+0x748): undefined reference to `sf::sleep(sf::Time)'
- /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
- collect2: error: ld returned 1 exit status
- make: *** [Makefile:27: compile] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement