I'm still trying to set up MinGW and Code::Blocks to use the latest SFML code from Github. Unfortunately I haven't been able to build and run a single program linked against SFML that doesn't crash (except for two of the examples), though I've had a few that will do something simple like printing Hello World! before crashing. I can build and run a "pure" Hello World! program from the command line without any problems. I don't get anything resembling a stack trace so I have no idea which .dll or build setting is wrong. I also tried downloading the SFML 2.1 libs for MinGW and linking my test program against those, but the crash didn't change.
This is essentially a follow-up to
http://en.sfml-dev.org/forums/index.php?topic=16519.0 since my initial problem of CMake/MinGW not working has been resolved. I am now able to build debug/release/static/dynamic SFML libs from the latest Github source. The problem now is that any attempt to use them produces crashes.
To try and remove Code::Blocks from the equation (though I did set it to use exactly the same mingw32 binaries I'm building SFML with), I also tried the example programs that get built by CMake/MinGW when I set SFML_BUILD_EXAMPLES to true. After building I copy all the .dlls from <build dir>/lib and <source dir>/extlibs/bin/x64 into examples/pong (and the other examples that are easy to test). Then double-clicking pong.exe gets me this:
---------------------------
pong.exe - Application Error
---------------------------
The application was unable to start correctly (0xc000007b). Click OK to close the application.
---------------------------
OK
---------------------------
Trying the x86 extlib .dlls produces an entirely different problem: The pong window frame will momentarily appear then disappear. Nothing ever gets drawn inside the frame and there's no indication that an error or crash took place.
The "window" example works perfectly fine for some reason. The "sound" example did work perfectly fine but for some reason after I rebuilt everything from scratch it started getting the 0xc000007b dialog box.
The "shader", "win32", "opengl" and "shader" examples fail in various ways, from making a window appear and immediately disappear to immediately crashing with the "_ has stopped working" dialog box.
Since all I've got right now is a set of random crashes and not-quite-crashes with no clues to follow up on (and yes, I googled everything, as usual none of the hits were remotely relevant), I need to ask for help again. What do I need to do to figure out what's wrong with my setup?