[try Beta version]
Not logged in

 
Can't get SFML to work? CodeBlocks.

Pages: 12
Aug 24, 2011 at 1:42pm
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 Aug 24, 2011 at 1:56pm
Aug 24, 2011 at 1:44pm
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.
Aug 24, 2011 at 1:53pm

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'"
Aug 24, 2011 at 1:56pm
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.
Aug 24, 2011 at 2:11pm
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!
Aug 24, 2011 at 5:38pm
I don't like to bump my posts, but I have a new error: sf was not declared.
Aug 24, 2011 at 5:50pm
@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
Aug 24, 2011 at 6:02pm
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.
Aug 24, 2011 at 7:16pm
I did. Everything is in the right spot, but it isn't working
Aug 25, 2011 at 4:12am
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