Make sure you are using the exact same built libraries to match the includes and libs.
For instance, if you are using the latest downloaded source, the built libraries that you link should also be built from that version of the source.
Mixing, say, the latest source for the includes and libs with downloaded release libraries for 2.3.1, can cause this sort of error.
If you have multiple versions, you need to make sure that the included libraries are updated (the libraries you copy across to the same folder/directory when you dynamically link) to match the version you are including.