MySQL Forums
Forum List  »  Connector/C++

Re: MySQL Connector 8.0 and Visual Studio 17
Posted by: Luis Silva
Date: December 20, 2018 06:39AM

Hi Bartosz,

Just tested with VS2015 and VS2017 (Both Community).

Opened Developer Command Prompt and:
cmake -DWITH_SSL=wolf_3.13.0_path connector_path
cmake --build . (Or Open VS solution)

The glitch I got with these was just a missing cast, because of the use of WolfSSL, witch was not caught when we build the connector, because we mainly use OpenSSL.

But the fix is easy:

cn= ASN1_STRING_get0_data(cn_asn1);
cn= (const unsigned char *)ASN1_STRING_data(cn_asn1);

Apart form this, all worked normally....

I think the issue could be with the environment from VS. I think you should use the Developer Command Prompt always, since it garantes all VS environment variables are set.

Hope it helps!

Luís Silva

Options: ReplyQuote

Written By
Re: MySQL Connector 8.0 and Visual Studio 17
December 20, 2018 06:39AM
December 20, 2018 12:44PM

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.