Hi, I hate to join to ask for help but I can't work this one in particular out for myself.
Using SFML 2.1 (installed via Homebrew) on a MaxOSX 10.9. I'm using SCONS to compile through terminal using these settings:
env = Environment()
env.Append(CPPFLAGS='-stdlib=libc++')
env.Append(CCFLAGS='-stdlib=libc++')
env.Append(LIBS = ['sfml-network','sfml-graphics', 'sfml-window'])
env.Append(LIBPATH = ['/usr/lib', '/usr/local/lib'])
env.Program(target = 'Game', source = ['Main.cpp'])
But when I try to open a window with: Window window(VideoMode(800, 600), "My window");
I get the error:
Undefined symbols for architecture x86_64:
"sf::String::String(char const*, std::__1::locale const&)", referenced from:
_main in Main.o
Now, I do not get this error everywhere. I have no issue using the Network component of SFML to use TCPSockets and Listeners to do stuff with Telnet and such. It's just this one particular component so far.
I've done everything I can think off, including reinstalling command line tools and trawling the internet. The reason I'm using '-stdlib=libc++' flags is because a previous thread here suggested it.