Here is the extremely simple test code I am attempting to run:
#include <SFML/Graphics.h>
int main()
{
sfVideoMode mode = {400, 400, 32};
sfRenderWindow* window;
window = sfRenderWindow_create(mode, "CSFML Test", sfResize | sfClose, NULL);
while (sfRenderWindow_isOpen(window))
{
sfRenderWindow_display(window);
}
return 0;
}
It compiles just fine in Code::Blocks. When I run, I get the following popup:
Having successfully created several C++ SFML projects, I find myself at a complete loss. I have no idea why that particular entry point wasn't found. I suspected it was with opengl32.dll, so I copied it into the bin directory of the executable, but nothing changed.
Any suggestions?
Edit:I am using the latest version of CSFML, compiled on my machine after running CMake and then using Code::Blocks to build it all.