MySQL Forums
Forum List  »  Connector/C++

Re: MySQL Connector 8.0 and Visual Studio 17
Posted by: Bartosz Bień
Date: December 17, 2018 05:56AM

Hi,

I'm having trouble generating vcxproj/sln files using the newest cmake (3.13.2 x64). I am using simply cmake -G "Visual Studio 15 2017". The generation for protobuf goes fine, but then there are errors for the library (see below). I've got VS 2017 Pro installed.

Any suggestions? Thanks! :)

BB



cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D HAVE_IS_SAME /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_ef839.dir\Debug\\" /Fd"cmTC_ef839.dir\Debug\vc141.pdb" /Gd /TP /wd4702 /analyze- /errorReport:queue /bigobj "C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\src.cxx"

src.cxx

C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\src.cxx(1): error C2065: 'is_same': undeclared identifier [C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\cmTC_ef839.vcxproj]

C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\src.cxx(1): error C2062: type 'bool' unexpected [C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\cmTC_ef839.vcxproj]

C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\src.cxx(1): error C2039: 'value': is not a member of '`global namespace'' [C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\cmTC_ef839.vcxproj]

Done Building Project "C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\cmTC_ef839.vcxproj" (default targets) -- FAILED.

*****

cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_38a7a.dir\Debug\\" /Fd"cmTC_38a7a.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\CheckIncludeFile.c"

CheckIncludeFile.c

C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'sys/endian.h': No such file or directory [C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\cmTC_38a7a.vcxproj]

Done Building Project "C:\Src\Szok\branches\InfraSzok\$\mysql-connector-c++-8.0.13-src\CMakeFiles\CMakeTmp\cmTC_38a7a.vcxproj" (default targets) -- FAILED.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL Connector 8.0 and Visual Studio 17
1149
December 17, 2018 05:56AM


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.