MySQL Forums
Forum List  »  Connector/C (libmysql)

Compiling MySQL Connector/C with Visual Studio 2015
Posted by: oleg oleg
Date: March 17, 2016 04:52AM

After creating a solution with cmake and i am trying to build mysql-connector-c-6.1.6 with Visual Studio 2015.
I faced with some error near:

struct timespec {
union ft64 tv;
/* The max timeout value in millisecond for native_cond_timedwait */
long max_timeout_msec;

Here is error log which compiler gave me:
Error C2011 'timespec': 'struct' type redefinition (compiling source file C:\Users\DDubinin\Downloads\mysql-connector-c-6.1.6-src\mysys\my_mess.c) mysys c:\users\ddubinin\downloads\mysql-connector-c-6.1.6-src\include\my_global.h 660

Could we tell me how should i resolve this issue?

Options: ReplyQuote

Written By
Compiling MySQL Connector/C with Visual Studio 2015
March 17, 2016 04:52AM

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.