MySQL Forums
Forum List  »  Connector/C++

Compiling connector/C++ with Visual Studio 2015
Posted by: Robert Rehammar
Date: December 31, 2015 08:34AM

Hi guys,

I am porting a project from Visual Studio 2010 to Visual Studio 2015. However, I find that I need to recompile connector/c++ which I use. However, I get errors of the kind:
Severity Code Description Project File Line Suppression State
Error C2011 'timespec': 'struct' type redefinition mysqlcppconn c:\program files (x86)\mysql\mysql connector.c 6.1\include\my_global.h 660

I understand this has to do with that there are new things in VS2015 that conflict with MySQL code. I read that this should have been resolved in latest version, but I get the same issues. I would very much appreciate any input on this matter. In particular from MySQL staff, giving some updated hints on how to work with connector/c++ and Visual Studio 2015.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.