Can't get SFML to work? CodeBlocks.

Pages: 12
That was what the only installer I could find was called. It said it needed an exe, so I clicked that.
My installer I think is called tdm-gcc-4.5.2
But thats in my downloads directory...
Last edited on
Huh? Forget the installer already. As the name implies, it's only needed to install MinGW. You can delete it afterwards.
And you certainly aren't supposed to enter it anywhere in the toolchain executables.

Okay, so now It's on the right compiler, but it's saying
" C:/Program Files (x86)/CodeBlocks/SFML 1/main.cpp:6: undefined reference to `sf::Clock::Clock()'
C:/Program Files (x86)/CodeBlocks/SFML 1/main.cpp:9: undefined reference to `sf::Clock::GetElapsedTime() const'
C:/Program Files (x86)/CodeBlocks/SFML 1/main.cpp:10: undefined reference to `sf::Sleep(float)'
C:/Program Files (x86)/CodeBlocks/SFML 1/main.cpp:7: undefined reference to `sf::Clock::GetElapsedTime() const'"
You need to link against the appropriate libraries (sfml-graphics, sfml-window, etc.) and make sure the libraries (the .a files from the SFML SDK) are in the lib subfolder of your MinGW.
mingw32-g++.exe: ..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-graphics.a: No such file or directory
mingw32-g++.exe: ..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-audio.a: No such file or directory
mingw32-g++.exe: ..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-main.a: No such file or directory. What is happening now? Gah!
I don't like to bump my posts, but I have a new error: sf was not declared.
@Framework - the AMD question was because there is a known issue with SFML 1.6 not compiling correctlly with the latest drivers from those cards
mingw32-g++.exe: ..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-graphics.a: No such file or directory
mingw32-g++.exe: ..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-audio.a: No such file or directory
mingw32-g++.exe: ..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-main.a: No such file or directory. What is happening now? Gah!


You need to link against the appropriate libraries (sfml-graphics, sfml-window, etc.) and make sure the libraries (the .a files from the SFML SDK) are in the lib subfolder of your MinGW.
I did. Everything is in the right spot, but it isn't working
The paths indicate that something's wrong in the settings (..\..\..\Users\Youtube Area\Desktop\SFML-1.6\lib\libsfml-graphics.a etc).
In the link libraries, you're only supposed to enter sfml-graphics, sfml-window etc., without any paths.
Topic archived. No new replies allowed.
Pages: 12