1
General / Undefined references to everything outside of the core package.
« on: August 18, 2013, 12:16:41 am »
I'm trying to get SFML to build on a Mac OS 10.8.4 with Xcode 4.6.3. I just downloaded the mac binaries and ran install.sh. Opening xcode and selecting the Application template doesn't build. I get these errors:
Undefined symbols for architecture x86_64:
"sf::Font::loadFromFile(std::string const&)", referenced from:
_main in main.o
"sf::Image::loadFromFile(std::string const&)", referenced from:
_main in main.o
"sf::Music::openFromFile(std::string const&)", referenced from:
_main in main.o
"sf::String::String(char const*, std::locale const&)", referenced from:
_main in main.o
"sf::Texture::loadFromFile(std::string const&, sf::Rect<int> const&)", 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)
I've tried adding the other frameworks to the project but it doesn't fix the error. Is it just me or is the framework broken?
Undefined symbols for architecture x86_64:
"sf::Font::loadFromFile(std::string const&)", referenced from:
_main in main.o
"sf::Image::loadFromFile(std::string const&)", referenced from:
_main in main.o
"sf::Music::openFromFile(std::string const&)", referenced from:
_main in main.o
"sf::String::String(char const*, std::locale const&)", referenced from:
_main in main.o
"sf::Texture::loadFromFile(std::string const&, sf::Rect<int> const&)", 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)
I've tried adding the other frameworks to the project but it doesn't fix the error. Is it just me or is the framework broken?