Switching to release build configuration got rid of the warning.
I tried replacing
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
with
sf::RenderWindow window;
window.create(sf::VideoMode(800, 600), "SFML window");
and that produces this error:
"sf::Window::create(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, sf::ContextSettings const&)", referenced from:
_main in main.o
And I tried
sf::Image icon=window.capture();
because that function is also in RenderWindow.cpp. It worked fine -- it even gave me a runtime error when I took out the window.create line. I don't know how this can happen. It's as if the constructor and create in RenderWindow.cpp didn't agree with RenderWindow.hpp when the frameworks got made.
Sounds like I need to avoid C++11 to avoid compiling, so not using C++11 is easier.
Fortunately, this is not true. ;) (That's why there is a C++11 version on the download page).
Undefined symbols for architecture x86_64:
"sf::RenderWindow::RenderWindow(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, sf::ContextSettings const&)", referenced from:
_main in main.o
It is important to note that's a linker error, not a compiler error. The reason you get this one is probably because you have some old header files from the Release Candidate hidden somewhere because this particular overload of the constructor doesn't exist anymore (the second parameter is a sf::String).
I wish I knew what I did when I installed the SFML 2.0 RC. But I can't find the older version of the tutorial to help figure out what I did
In fact you don't need the old tutorial because the new one uses the same directories to install SFML – the standard ones. :)
So, basically, look for SFML stuff in /Library/Framework, /usr/local/include, /usr/local/lib and additionally in /usr/include plus /usr/lib if you installed SFML 2.0 RC in those not recommended folders.