View Single Post
  #11  
Old 09-03-2015, 09:46 AM
dpjaf4t
Fire Beetle
 
Join Date: May 2010
Posts: 21
Default

You are compiling Debug build, aren't you?

1. When you are configuring in CMake, add to the end of CMAKE_EXE_LINKER_FLAGS_DEBUG, CMAKE_MODULE_LINKER_FLAGS_DEBUG and CMAKE_SHARED_LINKER_FLAGS_DEBUG "/NODEFAULTLIB:LIBCMT" (without the quotes, of course). That will knock down on some of the "function already defined" errors.

2. Be sure you have MYSQL_LIBRARY_DEBUG pointing at the DEBUG version of mysqlclient.lib. That is where you are getting the 'value 0 does not match value 2' errors.

3. And look close at whatever version of MySQL you have ... the errors 'mismatch detected for _MSC_VER expected 1600 got 1800' seem to be saying your MySQL was compiled with Visual Studio 2010, and the debug libraries especially won't be forward-compatible with VS2013.

I had to learn these by a bit of trial and lots of errors ...

I haven't noticed that any of the warnings you're getting are show-stoppers, in the CMake configuration for CMAKE_CXX_FLAGS and CMAKE_C_FLAGS I always change the /W3 flag to /W0 so I don't have to look at them.
Reply With Quote