SFML community forums
Help => General => Topic started by: neos300 on December 27, 2010, 12:26:29 am
-
So I followed the Xcode tutorial and pasted the SFML include folder into my project folder, and I can #include "SFML/Graphics.hpp", but it says that sf is not a namespace. Any idea on why this is happening?
-
1. Do you get an error on your #include ?
2. Are you sure you only need the Graphics header ?
3. Copying the include folder in your project folder is not what's explained in the tutorial. Most of the time you need to copy the SFML.framework directory to /Library/Frameworks.
-
It gives me an error when I run #include <SFML/Graphics.hpp>, it think's it doesnt exsist.
I'm running the graphics project template, and since graphics includes
On second thought, in XCode the framework names are in red and don't appear to exsist, maybe that is the problem?
How do I add frameworks in this?
-
Nevermind, the template had faulty linking. My bad.
-
You have not installed the SFML frameworks, as explained in the tutorial.