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:

#if OPENSSL_VERSION_NUMBER > 0x10100000L
cn= ASN1_STRING_get0_data(cn_asn1);
#else
cn= (const unsigned char *)ASN1_STRING_data(cn_asn1);
#endif


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!

Cheers,
Luís Silva

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL Connector 8.0 and Visual Studio 17
839
December 20, 2018 06:39AM


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.