MySQL Forums
Forum List  »  Connector/C++

Re: GCC G++/C++ Connect to MySQL on Windows 8.1 (Cygwin)
Posted by: Luis Silva
Date: May 15, 2017 08:49AM

Hi!

Looks like you are mixing 2 seperate versions (I see 1.1.8 as binaries and 2.0.x in source code).

They are 2 different APIs. 1.1.8 connects to mysql using default connection, and 2.0.x connects using XPLUGIN (https://dev.mysql.com/doc/refman/5.7/en/x-plugin.html)

They have nothing in common, so its better for you to decide what should you use (depending on your needs)

This is the link for the DevAPI (2.0.x connector) https://dev.mysql.com/doc/x-devapi-userguide/en/

And this is the tutorial for 1.x connector https://dev.mysql.com/doc/connector-cpp/en/

Regarding the error, we don't officially support Windows + gcc, only Windows + Visual Studio, but looking at the error, looks like some gcc passed option doesn't work/exists when gcc is on windows... take a look of the make file to see if you detect some issue..

Should be something like:

# Generated by "Unix Makefiles" Generator, CMake Version 3.6

# compile CXX with /usr/lib64/ccache/g++
CXX_FLAGS = -std=c++11 -std=c++11 -Wall -g -fPIC

CXX_DEFINES = -DCONCPP_BUILD_SHARED -DWITH_SSL -DWITH_SSL_YASSL

CXX_INCLUDES = -I/home/user/connector-cpp/cdk/include -I/home/user/connector-cpp/build/connector-cpp-Desktop-Debug/cdk/include


Cheers,
Luís

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: GCC G++/C++ Connect to MySQL on Windows 8.1 (Cygwin)
1652
May 15, 2017 08:49AM


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.