0

I installed SFML through the instructions provided by the website, did all the requirements related to library and frameworks into the usr folder on mac yet i am getting these errors

"sf::RenderTarget::clear(sf::Color const&)", referenced from:
      _main in main-7c00e5.o
  "sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)", referenced from:
      _main in main-7c00e5.o
  "sf::RenderWindow::~RenderWindow()", referenced from:
      _main in main-7c00e5.o
  "sf::Color::Black", referenced from:
      _main in main-7c00e5.o
  "sf::String::String(char const*, std::__1::locale const&)", referenced from:
      _main in main-7c00e5.o
  "sf::Window::close()", referenced from:
      _main in main-7c00e5.o
  "sf::Window::display()", referenced from:
      _main in main-7c00e5.o
  "sf::Window::pollEvent(sf::Event&)", referenced from:
      _main in main-7c00e5.o
  "sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)", referenced from:
      _main in main-7c00e5.o
  "sf::Window::isOpen() const", referenced from:
      _main in main-7c00e5.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1

I tried different things but didn't worked.

Alan Birtles
  • 27,579
  • 4
  • 25
  • 50
R.A.Y. 27
  • 1
  • 1
  • Have you linked to the sfml libraries? Are you using the same compiler and target architecture for the sfml libraries and your application? – Alan Birtles Mar 14 '22 at 12:24

0 Answers0