I have an Xcode project, using Xcode v3.2.6 on Mac OS X 10.6.8.
I've added the SFML 2.0 frameworks to it -
SFML.framework and all of the
sfml-<subsystem>.frameworks, located in
/Library/Frameworks. This compiles fine.
However, I also need to include a static library, the headers in
/usr/local/include and the .a files in
/usr/local/lib.
My understanding of Xcode is, in order to use headers and libraries kept in
/usr/local, I have to go to my project settings and add
/usr/local/include to my Header Search Paths.
The problem is when I do
that, my project is unable to link to the SFML framework(s).
This is the entirety of my code:
// main.cpp
#include "SFML/Graphics.hpp"
int main (int argc, char * const argv[])
{
sf::RenderWindow window(sf::VideoMode(800, 600), "My window");
return 0;
}
I get a "Symbol(s) not found) error where I try to initialize the window.
Strangely enough, the linker error goes away when I take out the constructor so that it just reads
sf::RenderWindow window;.