I've been trying to compile SFML2 using CMake from the latest snapshot. SFML2 compiles fine, but whenever I try to start a project with it, I get hundreds of errors like this in the linking stage (from within my own code):
obj\Release\AnimSprite.o:AnimSprite.cpp|| undefined reference to `_imp___ZN2sf6SpriteC1Ev'|
Currently, the lib and include files are installed directly into my MinGW folder. However, I've also tried using the install make and adding the Program Files\SFML directories as search directories, but it gave the exact same errors.
I'm compiling using Code::Blocks and MinGW, and compiled SFML using CMake and a clean install of MinGW.
Any help would be appreciated. Thanks!