Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: symbol(s) not found for architecture x86_64  (Read 2805 times)

0 Members and 1 Guest are viewing this topic.

Luorinz

  • Newbie
  • *
  • Posts: 2
    • View Profile
symbol(s) not found for architecture x86_64
« on: December 01, 2018, 09:16:41 pm »
Got this problem when I tried to create a renderwindow..

Renderwindow window(VideoMode(320, 480), "The game!");

Here is the error log

Undefined symbols for architecture x86_64:
  "sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)", referenced from:
      _main in main.o
  "sf::RenderWindow::~RenderWindow()", referenced from:
      _main in main.o
  "sf::String::String(char const*, std::__1::locale const&)", referenced from:
      _main in main.o
  "sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
Re: symbol(s) not found for architecture x86_64
« Reply #1 on: December 03, 2018, 02:05:10 pm »
Make sure to follow the tutorial.

You are not linking to SFML. Could also be an architecture mismatch.
GitHub
Code Concept
Twitter
Rosme on IRC/Discord

Luorinz

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: symbol(s) not found for architecture x86_64
« Reply #2 on: December 04, 2018, 07:25:20 pm »
I'm pretty sure that i've done everything on the tutorial and checked twice. I'm using the latest version of OSX and Xcode, still don't know why.

 

anything