You're probably linking 32-bits DLLs while compiling for 64-bits architecture or the other way around.
Or you're using release libraries in debug mode.
Btw. you should always post the full error, because errors aren't just random messages with no meaning. No, they usually tell you exactly what the issue is, as long as you know how to read them.