I am trying to build an application in Visual Studio 2013, linking with the libpq.lib library downloaded with the binary installer for PostgreSQL version 9.4 for Windows. I get this error:
LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in ...
My assumption is that the downloaded library has been built with an earlier version of the MSVC compiler (Visual Studio 2010?).
I would like to know which MSVC compiler was used to build the various versions of libpq, from version 9.4, 9.5, .... 10.0.
My compile error indicates that the modern MSVC compilers / linker will check for consistency (value of _MSC_VER). Will that prevent linking with libpq.lib in VS2015 and VS2017? (Provided libpq.lib was built with VS2013).