jeudi 21 mai 2015

SFML linker error with XCode and C++ 11

I'm trying to get SFML set up on OSX, and I'm running into problems linking the library. I've downloaded and installed the dylibs and have linked them with my project in Xcode, but when I try to compile, I get this error:

dyld: Library not loaded: @rpath/libsfml-graphics.2.3.dylib
  Referenced from:/Users/Adam/Documents/Programming/CPP/SFML/Build/Products/Debug/SFML
  Reason: image not found

I've tried googling around, but I haven't really found an answer. I saw someone say to change the version of C++ in the project settings, but the version I've downloaded and installed is supposed to be compatible with C++ 11.

Could it be I'm not using clang? I'm not very well versed in the intricacies of different compilers. My project settings under the heading of "Apple LLVM 6.1 - Language - C++" are as follows:

C++ Language Dialect: GNU++11 [-std=gnu++11]
C++ Standard Library: libc++ (LLVM C++ standard library with C++11 support)
Enable C++ Exceptions: Yes
Enable C++ Runtime Types: Yes

Aucun commentaire:

Enregistrer un commentaire