SFML community forums
Help => General => Topic started by: Luorinz 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)
-
Make sure to follow the tutorial (https://www.sfml-dev.org/tutorials/2.5/start-osx.php).
You are not linking to SFML. Could also be an architecture mismatch.
-
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.