<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Connector/C++</title>
        <description>Forum for Connector/C++</description>
        <link>https://forums.mysql.com/list.php?167</link>
        <lastBuildDate>Tue, 21 Apr 2026 07:15:49 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?167,740741,740741#msg-740741</guid>
            <title>Query about build error for Mysql Connector/C++ Source (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,740741,740741#msg-740741</link>
            <description><![CDATA[ OS: Windows<br />
Compiler: Visual Studio 2022 (MFC) C++<br />
Build bit: 32/64 bit<br />
<br />
Build item: Mysql Connector C++ source file<br />
<br />
Build mode: Visual Studio 2022 build mode (/Mtd,/MDd)<br />
<br />
I tried to download the binary code from the official site (https://dev.mysql.com/downloads/connector/cpp/) and use it, but the binary code generated an _ITERATOR_DEBUG_LEVEL error when compiled with &quot;Mtd and MDd&quot;.<br />
<br />
However, my environment requires &quot;Mtd and MDd&quot;, so I obtained the Mysql Connector C++ source file from <a href="https://dev.mysql.com/downloads/connector/cpp/"  rel="nofollow">https://dev.mysql.com/downloads/connector/cpp/</a>) and Git Hub.<br />
<br />
I want to build a build that can be built in wjsms /Mtd and /MDd build modes.<br />
<br />
However, the manual on your official site explains individual build options, but there is no example of a combination of build options for the state I need, so I don&#039;t know how to combine them, so I&#039;m asking. <br />
<br />
I want to build in /Mtd and /MDd build modes. <br />
<br />
That is, I want to build the Mysql Connector C++ source with the CMake below and create the &quot;mysqlcppconn-static.lib&quot; file. <br />
<br />
However, the binary code obtained from the official download site can only be used in the &quot;mysqlcppconn-static.lib&quot; file &quot;/MT&quot; or &quot;/MD&quot; when installing, so <br />
I need a combination of options to use it in &quot;/MTd&quot; or &quot;/MDd&quot; as well.<br />
<br />
cmake .. -G &quot;Visual Studio 17 2022&quot; -DCMAKE_INSTALL_PREFIX=../install -DMYSQLCPPCONN_DO_BUILD_TESTS=OFF -DBOOST_ROOT=../../boost_1_88_0 -DWITH_SSL=ON -DOPENSSL_ROOT_DIR=../../openssl -DOPENSSL_INCLUDE_DIR=../../openssl/include -DOPENSSL_LIBRARIES=&quot;../../openssl/lib/libssl.lib;../../openssl/lib/libcrypto.lib&quot; -DWITH_ZLIB=ON -DWITH_ZLIB_INCLUDE_DIR=../../zlib/include -DWITH_ZLIB_LIB_DIR=../../zlib/lib -DCMAKE_VERBOSE_MAKEFILE=ON<br />
<br />
<br />
<br />
<br />
Below is the combination of CMake options that I used to build. However, the result is that the file &quot;mysqlcppconn8-static.lib&quot; is generated, which is X DevAPI-enabled and not what I want to use.<br />
<br />
I would like to be able to use &quot;Mtd&quot; /Mdd&quot; in Visual Studio builds as well, so please modify the combination of options that I use above.]]></description>
            <dc:creator>YoungRack Choi</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 27 Jun 2025 14:05:45 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,740702,740702#msg-740702</guid>
            <title>mysqlcppconn-static.lib not being generated in CMake build (3 replies)</title>
            <link>https://forums.mysql.com/read.php?167,740702,740702#msg-740702</link>
            <description><![CDATA[ Hello, I am trying to clone MySQL Connector/C++ 8.4.0 source from the official GitHub repository and build it with CMake and Visual Studio 2022 on Windows.<br />
<br />
<br />
<br />
Goal:<br />
Create a static library (mysqlcppconn-static.lib)<br />
<br />
Get the required libraries through direct source build without binary distribution<br />
<br />
Environment:<br />
OS: Windows 10<br />
<br />
CMake: 3.29.0<br />
<br />
Visual Studio: 2022 (v17)<br />
<br />
Boost: 1.88.0 (prebuilt)<br />
<br />
OpenSSL: 3.x (built from source)<br />
<br />
zlib: Manually build and specify path<br />
<br />
<br />
<br />
CMake commands tried:<br />
<br />
cmake .. -G &quot;Visual Studio 17 2022&quot; -DCMAKE_INSTALL_PREFIX=../install -DBUILD_STATIC=ON -DBUILD_SHARED_LIBS=OFF -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF -DMYSQLCPPCONN_DO_BUILD_TESTS=OFF -DBOOST_ROOT=../../boost_1_88_0 -DWITH_SSL=openssl3 -DOPENSSL_ROOT_DIR=C:/dev/openssl -DOPENSSL_INCLUDE_DIR=C:/dev/openssl/include -DOPENSSL_LIBRARIES=&quot;C:/dev/openssl/lib/libssl.lib;C:/dev/openssl/lib/libcrypto.lib&quot; -DWITH_ZLIB=C:/dev/zlib -DWITH_ZLIB_INCLUDE_DIR=C:/dev/zlib/include -DWITH_ZLIB_LIB_DIR=C:/dev/zlib/lib -DCMAKE_VERBOSE_MAKEFILE=ON<br />
<br />
<br />
Issue:<br />
The above command is configured successfully, and the solution file is generated with Visual Studio, but mysqlcppconn-static.lib is not generated in the final build output.<br />
<br />
The static library does not exist in the install directory, nor in the lib subfolder.<br />
<br />
Related options such as BUILD_STATIC=ON and MYSQLCPPCONN_DO_BUILD_STATIC_JDBC=0 are enabled.<br />
<br />
Observation:<br />
The include directory on GitHub does not contain the jdbc folder that exists in the binary distribution (C:/Program Files/MySQL/MySQL Connector C++ 8.4/include).<br />
<br />
It also seems that the JDBC-related include path in CMakeLists.txt is not complete.<br />
<br />
❓Question:<br />
Are there any additional conditions or preprocessing required for mysqlcppconn-static.lib to be built properly?<br />
<br />
Is the include/jdbc folder automatically created when building the binary, or is it something that needs to be secured separately?<br />
<br />
I wonder if a separate JDBC source is needed due to differences between the binary distribution and the GitHub source.<br />
<br />
Thank you.<br />
<br />
P.S.<br />
<br />
I have used several OpenSources,<br />
and CMake.<br />
<br />
I used OPENSSL and Aslisk SIP with CMake, but I usually used the recommended build options from the official website.<br />
<br />
However, this is the first time that it supports so many options as Mysql Connector C++ 8.4, and I have used CMake to bundle several packages, but after trying many times, I felt that Mysql requires many options to link with many packages compared to any Open Source I have used so far.<br />
<br />
That is, I am a very beginner developer, so I politely inform you that I need a detailed explanation, so I have written a long introduction. <br />
<br />
Also, since I do not have an environment like the above, I would like to build the generated &quot;mysqlcppconn-static.lib&quot; from your company&#039;s git hub or from &quot;mysql-connector-c++-8.4.0-src.zip&quot; on the official site when installing the binary distribution file (mysql-connector-c++-8.4.0-winx64.msi) provided on the official site.<br />
<br />
<br />
However, I have read all the official websites to gain the relevant knowledge, but due to time constraints and my poor English skills, I have reached my limit. Please understand this question.]]></description>
            <dc:creator>YoungRack Choi</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 27 Jun 2025 14:12:13 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,733329,733329#msg-733329</guid>
            <title>I&#039;m using c++ with prepared db (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,733329,733329#msg-733329</link>
            <description><![CDATA[ #include &lt;iostream&gt; #include &lt;windows.h&gt; #include &lt;sql.h&gt; #include &lt;sqlext.h&gt; #include &lt;string&gt; #include &lt;cstring&gt; #include&quot;stdafx.h&quot; // Constants #define MAX_NAME_SIZE 256 #define OSUCCESS 0 #define OFAILURE -1 // Global variables SQLHENV m_SqlEnv = NULL; // ODBC environment handle SQLHDBC m_SqlConn = NULL; // ODBC connection handle SQLHSTMT m_SqlStmt = NULL; // ODBC statement handle bool m_bIsOpen = false; // Connection status flag // Function prototypes void get_Error(SQLSMALLINT handleType, SQLHANDLE handle); bool DFT_ODBC_Initialize(); void Cleanup(); int _tmain(int argc, _TCHAR* argv[]) {   // Static initialization flag   static int iIsInitialized = 0;   // Connection string construction   char connstr[500] = &quot;DSN=&quot;;   const char* p_cpDSNName = &quot;mysql_dsn&quot;;   const char* p_cpUserName = &quot;root&quot;;   const char* p_cpPassword = &quot;dedupe&quot;;      SQLHANDLE m_SqlStmt;   SQLHANDLE m_SqlConn;   //  static int iIsInitialized = 0;   char        m_cUserName[MAX_NAME_SIZE]; // create member char array varaible   char        m_cPassword[MAX_NAME_SIZE]; // create member char array varaible   char        m_cDSNName[MAX_NAME_SIZE];// create member char array varaible   strcat(connstr, p_cpDSNName);   /*strcat(connstr,&quot;;Database=&quot;);   strcat(connstr,p_cpDBName);*/   strcat(connstr, &quot;;UID=&quot;);   strcat(connstr, p_cpUserName);   strcat(connstr, &quot;;PWD=&quot;);   strcat(connstr, p_cpPassword);   strcat(connstr, &quot;;MARS_Connection=Yes&quot;);   if (iIsInitialized == 0) // This is to ensure that , it will be called once in the lifetime of the program.   {     if (!DFT_ODBC_Initialize())     {       MessageBox(NULL, &quot;FAILED&quot;, &quot;Initialization of ODBC failed.&quot;, MB_OK);       return OFAILURE;     }     else       iIsInitialized = 1;   }   //m_bIsOpen = false; // set m_bIsOpen to false   try   {     memset(m_cUserName, 0, MAX_NAME_SIZE); // set memory of size m_cUserName     memset(m_cPassword, 0, MAX_NAME_SIZE);// set memory of size m_cPassword     memset(m_cDSNName, 0, MAX_NAME_SIZE);// set memory of size m_cServiceName     strcpy(m_cUserName, p_cpUserName);//string copy p_cpUserName to m_cUserName     strcpy(m_cPassword, p_cpPassword);//string copy p_cpPassword to m_cPassword     strcpy(m_cDSNName, p_cpDSNName);//string copy p_cpServiceName to m_cServiceName     if (!SQL_SUCCEEDED(SQLAllocHandle(SQL_HANDLE_DBC, m_SqlEnv, &amp;m_SqlConn)))     {       get_Error(SQL_HANDLE_ENV, m_SqlEnv);     }     SQLCHAR retconn[1024];     //if(!SQL_SUCCEEDED(SQLConnect (m_SqlConn ,(SQLCHAR *) m_cDSNName, SQL_NTS, (SQLCHAR *)m_cUserName, SQL_NTS,(SQLCHAR *) m_cPassword, SQL_NTS)))     if (!SQL_SUCCEEDED(SQLDriverConnect(m_SqlConn, NULL, (SQLCHAR*)connstr, SQL_NTS, retconn, 1024, NULL, SQL_DRIVER_NOPROMPT)))     {       get_Error(SQL_HANDLE_DBC, m_SqlConn);     }     //MessageBox(NULL,(char*)retconn,&quot;connstr&quot;,MB_OK);     if (!SQL_SUCCEEDED(SQLAllocHandle(SQL_HANDLE_STMT, m_SqlConn, &amp;m_SqlStmt)))     {       get_Error(SQL_HANDLE_STMT, m_SqlStmt);     }     if (!SQL_SUCCEEDED(SQLSetStmtAttr(m_SqlStmt, SQL_ATTR_QUERY_TIMEOUT, (SQLPOINTER)3600, SQL_IS_INTEGER)))     {       get_Error(SQL_HANDLE_STMT, m_SqlStmt);     }     if (!SQL_SUCCEEDED(SQLSetConnectAttr(m_SqlConn, SQL_ATTR_CONNECTION_TIMEOUT, (SQLPOINTER)3600, 0)))     {       get_Error(SQL_HANDLE_DBC, m_SqlConn);     }     if (!SQL_SUCCEEDED(SQLSetConnectAttr(m_SqlConn, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_ON, 0)))     {       get_Error(SQL_HANDLE_DBC, m_SqlConn);     }     else     {       // Prepare SQL statement with parameter placeholder       const char* query = &quot;SELECT * FROM base WHERE uuid = ?&quot;;       if (!SQL_SUCCEEDED(SQLPrepare(m_SqlStmt, (SQLCHAR*)query, SQL_NTS))) {         get_Error(SQL_HANDLE_STMT, m_SqlStmt);         return OFAILURE;       }       // Create a buffer to hold the UUID value for binding       SQLCHAR uuidParam[37]; // 36 characters for UUID + null terminator       // Bind the parameter once       if (!SQL_SUCCEEDED(SQLBindParameter(m_SqlStmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 37, 0, &amp;uuidParam, 0, NULL))) {         get_Error(SQL_HANDLE_STMT, m_SqlStmt);         return OFAILURE;       }       // Generate and use 1000 UUIDs (For demonstration, using uuid-1, uuid-2, ..., uuid-1000)       for (int i = 1; i &lt;= 10000; ++i) {         // Create a simple UUID string: &quot;uuid-1&quot;, &quot;uuid-2&quot;, ..., &quot;uuid-1000&quot;         snprintf((char*)uuidParam, sizeof(uuidParam), &quot;%d&quot;, i);         // Execute the prepared statement         if (!SQL_SUCCEEDED(SQLExecute(m_SqlStmt))) {           get_Error(SQL_HANDLE_STMT, m_SqlStmt);           continue; // Skip to the next UUID if execution fails         }         // Fetch and display the results for the current UUID         SQLINTEGER id;         SQLCHAR column_name[100];         SQLCHAR column_value[100];         // Iterate over the rows for the current UUID         while (SQL_SUCCEEDED(SQLFetch(m_SqlStmt))) {           // Example of fetching columns (change based on your table schema)           SQLGetData(m_SqlStmt, 1, SQL_C_SLONG, &amp;id, 0, NULL); // Assuming 1st column is an integer (ID)           SQLGetData(m_SqlStmt, 2, SQL_C_CHAR, column_name, sizeof(column_name), NULL); // 2nd column: name           SQLGetData(m_SqlStmt, 3, SQL_C_CHAR, column_value, sizeof(column_value), NULL); // 3rd column: value           // Print the result for this row           std::cout &lt;&lt; &quot;UUID: uuid-&quot; &lt;&lt; i &lt;&lt; &quot;, ID: &quot; &lt;&lt; id &lt;&lt; &quot;, Name: &quot; &lt;&lt; column_name &lt;&lt; &quot;, Value: &quot; &lt;&lt; column_value &lt;&lt; std::endl;         }         // Reset the statement for the next UUID (optional)         SQLFreeStmt(m_SqlStmt, SQL_CLOSE); // Close the result set to reuse the statement handle for the next UUID       }       // Cleanup       SQLFreeHandle(SQL_HANDLE_STMT, m_SqlStmt);       SQLFreeHandle(SQL_HANDLE_DBC, m_SqlConn);       return OSUCCESS;     }   }   catch (...)   {     return OFAILURE;   }   return true;//m_bIsOpen; // return the m_bIsOpen value } // Error handling function to retrieve and display ODBC error details void get_Error(SQLSMALLINT handleType, SQLHANDLE handle) {   SQLCHAR SQLState[6], message[256];   SQLINTEGER nativeError;   SQLSMALLINT msgLen;   // Retrieve error message   SQLGetDiagRec(handleType, handle, 1, SQLState, &amp;nativeError, message, sizeof(message), &amp;msgLen);   // Display error message   std::cerr &lt;&lt; &quot;ODBC Error: &quot; &lt;&lt; message &lt;&lt; &quot; (SQLState: &quot; &lt;&lt; SQLState &lt;&lt; &quot;, NativeError: &quot; &lt;&lt; nativeError &lt;&lt; &quot;)&quot; &lt;&lt; std::endl; } // Initialize the ODBC environment bool DFT_ODBC_Initialize() {   if (SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &amp;m_SqlEnv) != SQL_SUCCESS) {     std::cerr &lt;&lt; &quot;Unable to allocate ODBC environment handle.&quot; &lt;&lt; std::endl;     return false;   }   // Set the ODBC version to 3.x   if (SQLSetEnvAttr(m_SqlEnv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, 0) != SQL_SUCCESS) {     std::cerr &lt;&lt; &quot;Unable to set ODBC version.&quot; &lt;&lt; std::endl;     SQLFreeHandle(SQL_HANDLE_ENV, m_SqlEnv);     return false;   }   return true; }<br />
<br />
<br />
<br />
In this above code at line Reset the statment for next uuid option .. it&#039;s not able free the memory.. at every iteration memory is increasing, can help with this , for this memory issue]]></description>
            <dc:creator>Kale Laxman</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 22 Nov 2024 12:59:44 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,726140,726140#msg-726140</guid>
            <title>use Mingw to complie cant find file or directory (2 replies)</title>
            <link>https://forums.mysql.com/read.php?167,726140,726140#msg-726140</link>
            <description><![CDATA[ $ cmake --build .  --config Debug<br />
<br />
[ 96%] Linking CXX shared library libmysqlcppconn-10.dll<br />
Merging SHARED library: C:\Users\ASUS\Desktop\mingw\jdbc\libmysqlcppconn-10.dll<br />
Merge options:<br />
- using gcc tools<br />
F:\CLion 2023.3.4\bin\mingw\bin/ld.exe: cannot find Files/MySQL/MySQL: No such file or directory<br />
F:\CLion 2023.3.4\bin\mingw\bin/ld.exe: cannot find Server: No such file or directory<br />
F:\CLion 2023.3.4\bin\mingw\bin/ld.exe: cannot find 8.0/lib: No such file or directory<br />
F:\CLion 2023.3.4\bin\mingw\bin/ld.exe: cannot find Files/MySQL/MySQL: No such file or directory<br />
F:\CLion 2023.3.4\bin\mingw\bin/ld.exe: cannot find Server: No such file or directory<br />
F:\CLion 2023.3.4\bin\mingw\bin/ld.exe: cannot find 8.0/lib/private: No such file or directory<br />
collect2.exe: error: ld returned 1 exit status<br />
CMake Error at C:/Users/ASUS/Desktop/mingw/libutils/merge_archives.cmake:260 (message):<br />
  Failed to link shared library libmysqlcppconn-10<br />
Call Stack (most recent call first):<br />
  C:/Users/ASUS/Desktop/mingw/libutils/merge_archives.cmake:201 (merge_libraries_gcc)<br />
  C:/Users/ASUS/Desktop/mingw/libutils/merge_archives.cmake:799 (main)]]></description>
            <dc:creator>dcat d</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 27 Jun 2025 14:20:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,726136,726136#msg-726136</guid>
            <title>use Mingw to complie have -Werror (4 replies)</title>
            <link>https://forums.mysql.com/read.php?167,726136,726136#msg-726136</link>
            <description><![CDATA[ from C:\Users\ASUS\Desktop\mingw\mysql-connector-cpp\cdk\extra\protobuf\protobuf-]]></description>
            <dc:creator>dcat d</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 27 Jun 2025 14:17:04 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,725779,725779#msg-725779</guid>
            <title>Connector/C++ 9.0.0 build failed with error (3 replies)</title>
            <link>https://forums.mysql.com/read.php?167,725779,725779#msg-725779</link>
            <description><![CDATA[ I tried to compile Connector/C++ 9.0.0 from source on Windows with cmake and the driver is failing to build with error message.<br />
<br />
Commands I used:<br />
<br />
cmake &quot;C:\mysql-connector-c++-9.0.0-src&quot; -DCMAKE_INSTALL_PREFIX=&quot;C:\mysql-connector-c++-9.0.0-install&quot; -DWITH_JDBC=ON -DWITH_BOOST=&quot;C:\boost-1.86.0&quot; -DWITH_MYSQL=&quot;C:\Program Files\MySQL\MySQL Server 9.0&quot; -DWITH_SSL=&quot;C:\openssl-3.3.1-install&quot;<br />
<br />
cmake --build . --config Debug<br />
<br />
<br />
And I get the following output after configure and build commands:<br />
<br />
dinus@VivoBook-X513EP MINGW64 /c/mysql-connector-c++-9.0.0-build<br />
$ cmake &quot;C:\mysql-connector-c++-9.0.0-src&quot; -DCMAKE_INSTALL_PREFIX=&quot;C:\mysql-connector-c++-9.0.0-install&quot; -DWITH_JDBC=ON -DWITH_BOOST=&quot;C:\boost-1.86.0&quot; -DWITH_MYSQL=&quot;C:\Program Files\MySQL\MySQL Server 9.0&quot; -DWITH_SSL=&quot;C:\openssl-3.3.1-install&quot;<br />
-- Building for: Ninja<br />
CMake Deprecation Warning at CMakeLists.txt:32 (CMAKE_POLICY):<br />
  Compatibility with CMake &lt; 3.5 will be removed from a future version of<br />
  CMake.<br />
<br />
  Update the VERSION argument &lt;min&gt; value or use a ...&lt;max&gt; suffix to tell<br />
  CMake that the project does not need compatibility with older versions.<br />
<br />
<br />
-- The C compiler identification is GNU 13.2.0<br />
-- The CXX compiler identification is GNU 13.2.0<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working C compiler: C:/mingw64/bin/gcc.exe - skipped<br />
-- Detecting C compile features<br />
-- Detecting C compile features - done<br />
-- Detecting CXX compiler ABI info<br />
-- Detecting CXX compiler ABI info - done<br />
-- Check for working CXX compiler: C:/mingw64/bin/c++.exe - skipped<br />
-- Detecting CXX compile features<br />
-- Detecting CXX compile features - done<br />
-- BIG_ENDIAN: 0<br />
Building version 9.0.0<br />
Building on system: Windows-10.0.22631 (AMD64)<br />
Using cmake generator: Ninja<br />
Using toolset:<br />
Building 64bit code<br />
Building shared connector library<br />
-- Looking for SSL library.<br />
-- Found OpenSSL: C:/openssl-3.3.1-install/lib/libcrypto.dll.a (found version &quot;3.3.1&quot;)<br />
-- Using OpenSSL version: 3.3.1<br />
-- Looking for SHA512_DIGEST_LENGTH<br />
-- Looking for SHA512_DIGEST_LENGTH - found<br />
-- Looking for X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS<br />
-- Looking for X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS - found<br />
-- Looking for SSL_get0_param<br />
-- Looking for SSL_get0_param - found<br />
-- Looking for X509_VERIFY_PARAM_set_hostflags<br />
-- Looking for X509_VERIFY_PARAM_set_hostflags - found<br />
-- Looking for X509_VERIFY_PARAM_set1_host<br />
-- Looking for X509_VERIFY_PARAM_set1_host - found<br />
-- found required X509 extensions<br />
CMake Deprecation Warning at cdk/CMakeLists.txt:33 (cmake_policy):<br />
  Compatibility with CMake &lt; 3.5 will be removed from a future version of<br />
  CMake.<br />
<br />
  Update the VERSION argument &lt;min&gt; value or use a ...&lt;max&gt; suffix to tell<br />
  CMake that the project does not need compatibility with older versions.<br />
<br />
<br />
Configuring CDK as part of MySQL_CONCPP project<br />
-- Setting up RapidJSON.<br />
Skipping second declaration of config option: THROW_AS_ASSERT (found in: C:/mysql-connector-c++-9.0.0-src/cdk/CMakeLists.txt)<br />
-- Looking for sys/types.h<br />
-- Looking for sys/types.h - found<br />
-- Looking for stdint.h<br />
-- Looking for stdint.h - found<br />
-- Looking for stddef.h<br />
-- Looking for stddef.h - found<br />
-- Check size of wchar_t<br />
-- Check size of wchar_t - done<br />
-- Setting up Protobuf.<br />
== configuring external build of protobuf<br />
-- sources at: C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf<br />
-- generator: Ninja<br />
-- option CMAKE_BUILD_TYPE: Debug<br />
-- option CMAKE_SYSTEM_NAME: Windows<br />
-- option CMAKE_SYSTEM_VERSION: 10.0.22631<br />
-- option CMAKE_SYSTEM_PROCESSOR: AMD64<br />
-- option CMAKE_C_COMPILER: C:/mingw64/bin/gcc.exe<br />
-- option CMAKE_CXX_COMPILER: C:/mingw64/bin/c++.exe<br />
-- ----<br />
Not searching for unused variables given on the command line.<br />
-- The C compiler identification is GNU 13.2.0<br />
-- The CXX compiler identification is GNU 13.2.0<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working C compiler: C:/mingw64/bin/gcc.exe - skipped<br />
-- Detecting C compile features<br />
-- Detecting C compile features - done<br />
-- Detecting CXX compiler ABI info<br />
-- Detecting CXX compiler ABI info - done<br />
-- Check for working CXX compiler: C:/mingw64/bin/c++.exe - skipped<br />
-- Detecting CXX compile features<br />
-- Detecting CXX compile features - done<br />
-- BIG_ENDIAN: 0<br />
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD<br />
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed<br />
-- Looking for pthread_create in pthreads<br />
-- Looking for pthread_create in pthreads - not found<br />
-- Looking for pthread_create in pthread<br />
-- Looking for pthread_create in pthread - found<br />
-- Found Threads: TRUE<br />
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS<br />
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success<br />
-- Configuring done (1.7s)<br />
-- Generating done (0.1s)<br />
-- Build files have been written to: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/protobuf<br />
== done configuring external build of protobuf<br />
-- Setting up compression libraries.<br />
== configuring external build of zlib<br />
-- sources at: C:/mysql-connector-c++-9.0.0-src/cdk/extra/zlib<br />
-- generator: Ninja<br />
-- option CMAKE_BUILD_TYPE: Debug<br />
-- option CMAKE_SYSTEM_NAME: Windows<br />
-- option CMAKE_SYSTEM_VERSION: 10.0.22631<br />
-- option CMAKE_SYSTEM_PROCESSOR: AMD64<br />
-- option CMAKE_C_COMPILER: C:/mingw64/bin/gcc.exe<br />
-- option CMAKE_CXX_COMPILER: C:/mingw64/bin/c++.exe<br />
-- ----<br />
Not searching for unused variables given on the command line.<br />
-- The C compiler identification is GNU 13.2.0<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working C compiler: C:/mingw64/bin/gcc.exe - skipped<br />
-- Detecting C compile features<br />
-- Detecting C compile features - done<br />
-- BIG_ENDIAN: 0<br />
-- Looking for sys/types.h<br />
-- Looking for sys/types.h - found<br />
-- Looking for stdint.h<br />
-- Looking for stdint.h - found<br />
-- Looking for stddef.h<br />
-- Looking for stddef.h - found<br />
-- Check size of off64_t<br />
-- Check size of off64_t - done<br />
-- Looking for fseeko<br />
-- Looking for fseeko - found<br />
-- Looking for unistd.h<br />
-- Looking for unistd.h - found<br />
-- Configuring done (1.5s)<br />
-- Generating done (0.0s)<br />
-- Build files have been written to: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/zlib<br />
== done configuring external build of zlib<br />
== configuring external build of lz4<br />
-- sources at: C:/mysql-connector-c++-9.0.0-src/cdk/extra/lz4<br />
-- generator: Ninja<br />
-- option CMAKE_BUILD_TYPE: Debug<br />
-- option CMAKE_SYSTEM_NAME: Windows<br />
-- option CMAKE_SYSTEM_VERSION: 10.0.22631<br />
-- option CMAKE_SYSTEM_PROCESSOR: AMD64<br />
-- option CMAKE_C_COMPILER: C:/mingw64/bin/gcc.exe<br />
-- option CMAKE_CXX_COMPILER: C:/mingw64/bin/c++.exe<br />
-- ----<br />
Not searching for unused variables given on the command line.<br />
-- The C compiler identification is GNU 13.2.0<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working C compiler: C:/mingw64/bin/gcc.exe - skipped<br />
-- Detecting C compile features<br />
-- Detecting C compile features - done<br />
-- BIG_ENDIAN: 0<br />
-- Configuring done (0.5s)<br />
-- Generating done (0.0s)<br />
-- Build files have been written to: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/lz4<br />
== done configuring external build of lz4<br />
== configuring external build of zstd<br />
-- sources at: C:/mysql-connector-c++-9.0.0-src/cdk/extra/zstd<br />
-- generator: Ninja<br />
-- option CMAKE_BUILD_TYPE: Debug<br />
-- option CMAKE_SYSTEM_NAME: Windows<br />
-- option CMAKE_SYSTEM_VERSION: 10.0.22631<br />
-- option CMAKE_SYSTEM_PROCESSOR: AMD64<br />
-- option CMAKE_C_COMPILER: C:/mingw64/bin/gcc.exe<br />
-- option CMAKE_CXX_COMPILER: C:/mingw64/bin/c++.exe<br />
-- ----<br />
Not searching for unused variables given on the command line.<br />
-- The C compiler identification is GNU 13.2.0<br />
-- The CXX compiler identification is GNU 13.2.0<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working C compiler: C:/mingw64/bin/gcc.exe - skipped<br />
-- Detecting C compile features<br />
-- Detecting C compile features - done<br />
-- Detecting CXX compiler ABI info<br />
-- Detecting CXX compiler ABI info - done<br />
-- Check for working CXX compiler: C:/mingw64/bin/c++.exe - skipped<br />
-- Detecting CXX compile features<br />
-- Detecting CXX compile features - done<br />
-- BIG_ENDIAN: 0<br />
-- ZSTD_LEGACY_SUPPORT not defined!<br />
-- Configuring done (0.9s)<br />
-- Generating done (0.0s)<br />
-- Build files have been written to: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/zstd<br />
== done configuring external build of zstd<br />
-- Looking for sys/endian.h<br />
-- Looking for sys/endian.h - not found<br />
-- Looking for sys/byteorder.h<br />
-- Looking for sys/byteorder.h - not found<br />
Wrote configuration header: C:/mysql-connector-c++-9.0.0-build/cdk/include/mysql/cdk/config.h<br />
Legacy library soversion: 10<br />
Looking for MySQL Client library:<br />
  version: 9.0.1<br />
  include path: C:/Program Files/MySQL/MySQL Server 9.0/include<br />
  library location: C:/Program Files/MySQL/MySQL Server 9.0/lib/libmysql.lib<br />
  dependencies search path: -LC:/Program Files/MySQL/MySQL Server 9.0/lib -LC:/Program Files/MySQL/MySQL Server 9.0/lib/private<br />
-- Checking if MySQL client lib supports vector type - TRUE<br />
-- Looking for include file inttypes.h<br />
-- Looking for include file inttypes.h - found<br />
-- Check size of int8_t<br />
-- Check size of int8_t - done<br />
-- Check size of uint8_t<br />
-- Check size of uint8_t - done<br />
-- Check size of int16_t<br />
-- Check size of int16_t - done<br />
-- Check size of uint16_t<br />
-- Check size of uint16_t - done<br />
-- Check size of int32_t<br />
-- Check size of int32_t - done<br />
-- Check size of uint32_t<br />
-- Check size of uint32_t - done<br />
-- Check size of int64_t<br />
-- Check size of int64_t - done<br />
-- Check size of uint64_t<br />
-- Check size of uint64_t - done<br />
-- Check size of __int8<br />
-- Check size of __int8 - done<br />
-- Check size of unsigned __int8<br />
-- Check size of unsigned __int8 - done<br />
-- Check size of __int16<br />
-- Check size of __int16 - done<br />
-- Check size of unsigned __int16<br />
-- Check size of unsigned __int16 - done<br />
-- Check size of __int32<br />
-- Check size of __int32 - done<br />
-- Check size of unsigned __int32<br />
-- Check size of unsigned __int32 - done<br />
-- Check size of __int64<br />
-- Check size of __int64 - done<br />
-- Check size of unsigned __int64<br />
-- Check size of unsigned __int64 - done<br />
-- Looking for strtold<br />
-- Looking for strtold - found<br />
-- Looking for strtol<br />
-- Looking for strtol - found<br />
-- Looking for strtoll<br />
-- Looking for strtoll - found<br />
-- Looking for strtoul<br />
-- Looking for strtoul - found<br />
-- Looking for strtoull<br />
-- Looking for strtoull - found<br />
-- Looking for strtoimax<br />
-- Looking for strtoimax - found<br />
-- Looking for strtoumax<br />
-- Looking for strtoumax - found<br />
-- Using static libmysql binding<br />
Preparing to merge SHARED library: connector-jdbc (jdbc)<br />
Connector legacy library name: mysqlcppconn-10<br />
-- Using cipher list defined in: C:/mysql-connector-c++-9.0.0-src/cdk/foundation/tls_ciphers.h<br />
Preparing to merge SHARED library: connector (xapi;devapi)<br />
Connector library name: mysqlcppconnx-2<br />
Building version 9.0.0<br />
Generating INFO_SRC<br />
Generating INFO_BIN<br />
Install location: C:/mysql-connector-c++-9.0.0-install<br />
Connector libraries will be installed at: lib64<br />
<br />
Project configuration options:<br />
<br />
: BUILD_STATIC: OFF<br />
Build static version of connector library<br />
<br />
: WITH_SSL: C:\openssl-3.3.1-install<br />
Either &#039;system&#039; to use system-wide OpenSSL library, or custom OpenSSL location. (default : system)<br />
<br />
: WITH_PROTOBUF:<br />
Enable, disable or point to PROTOBUF installation.<br />
<br />
: WITH_ZLIB:<br />
Enable, disable or point to ZLIB installation.<br />
<br />
: WITH_LZ4:<br />
Enable, disable or point to LZ4 installation.<br />
<br />
: WITH_ZSTD:<br />
Enable, disable or point to ZSTD installation.<br />
<br />
: WITH_JDBC: ON<br />
Whether to build a variant of connector library which implements legacy JDBC API<br />
<br />
: WITH_MYSQL: C:/Program Files/MySQL/MySQL Server 9.0<br />
Base location of (monolithic) MySQL installation.<br />
<br />
-- Configuring done (14.5s)<br />
-- Generating done (0.1s)<br />
CMake Warning:<br />
  Manually-specified variables were not used by the project:<br />
<br />
    WITH_BOOST<br />
<br />
<br />
-- Build files have been written to: C:/mysql-connector-c++-9.0.0-build<br />
<br />
dinus@VivoBook-X513EP MINGW64 /c/mysql-connector-c++-9.0.0-build<br />
$ cmake --build . --config Debug<br />
[2/121] C:\Windows\system32\cmd.exe /C &quot;cd /D C:...tor-c++-9.0.0-src/cdk/cmake/ext/ext-build.cmake&quot;<br />
== Running extrnal build at: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/zlib (Debug)<br />
[1/16] Building C object CMakeFiles/zlib.dir/compress.obj<br />
[2/16] Building C object CMakeFiles/zlib.dir/gzlib.obj<br />
[3/16] Building C object CMakeFiles/zlib.dir/crc32.obj<br />
[4/16] Building C object CMakeFiles/zlib.dir/gzclose.obj<br />
[5/16] Building C object CMakeFiles/zlib.dir/adler32.obj<br />
[6/16] Building C object CMakeFiles/zlib.dir/gzwrite.obj<br />
[7/16] Building C object CMakeFiles/zlib.dir/inflate.obj<br />
[8/16] Building C object CMakeFiles/zlib.dir/infback.obj<br />
[9/16] Building C object CMakeFiles/zlib.dir/deflate.obj<br />
[10/16] Building C object CMakeFiles/zlib.dir/gzread.obj<br />
[11/16] Building C object CMakeFiles/zlib.dir/inftrees.obj<br />
[12/16] Building C object CMakeFiles/zlib.dir/uncompr.obj<br />
[13/16] Building C object CMakeFiles/zlib.dir/inffast.obj<br />
[14/16] Building C object CMakeFiles/zlib.dir/zutil.obj<br />
[15/16] Building C object CMakeFiles/zlib.dir/trees.obj<br />
[16/16] Linking C static library libzlib.a<br />
== Extrnal build done<br />
[6/121] C:\Windows\system32\cmd.exe /C &quot;cd /D C:...tor-c++-9.0.0-src/cdk/cmake/ext/ext-build.cmake&quot;<br />
== Running extrnal build at: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/lz4 (Debug)<br />
[1/5] Building C object CMakeFiles/lz4.dir/lib/lz4frame.c.obj<br />
[2/5] Building C object CMakeFiles/lz4.dir/lib/xxhash.c.obj<br />
[3/5] Building C object CMakeFiles/lz4.dir/lib/lz4hc.c.obj<br />
[4/5] Building C object CMakeFiles/lz4.dir/lib/lz4.c.obj<br />
[5/5] Linking C static library liblz4.a<br />
== Extrnal build done<br />
[9/121] Building CXX object cdk/foundation/CMakeFiles/cdk_foundation.dir/socket_detail.cc.obj<br />
C:/mysql-connector-c++-9.0.0-src/cdk/foundation/socket_detail.cc:57: warning: ignoring &#039;#pragma comment &#039; [-Wunknown-pragmas]<br />
   57 | #pragma comment(lib,&quot;Dnsapi&quot;)<br />
      |<br />
In file included from C:/mysql-connector-c++-9.0.0-src/cdk/include/mysql/cdk/foundation/types.h:35,<br />
                 from C:/mysql-connector-c++-9.0.0-src/cdk/foundation/socket_detail.h:33,<br />
                 from C:/mysql-connector-c++-9.0.0-src/cdk/foundation/socket_detail.cc:31:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/foundation/socket_detail.cc: In function &#039;int cdk::foundation::connection::detail::poll_one(Socket, Poll_mode, bool, uint64_t)&#039;:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/include/mysql/cdk/foundation/common.h:47:23: warning: unknown option after &#039;#pragma GCC diagnostic&#039; kind [-Wpragmas]<br />
   47 | #define PRAGMA_CDK(X) _Pragma(#X)<br />
      |                       ^~~~~~~<br />
C:/mysql-connector-c++-9.0.0-src/cdk/include/mysql/cdk/foundation/common.h:48:32: note: in expansion of macro &#039;PRAGMA_CDK&#039;<br />
   48 | #define DISABLE_WARNING_CDK(W) PRAGMA_CDK(GCC diagnostic ignored #W)<br />
      |                                ^~~~~~~~~~<br />
C:/mysql-connector-c++-9.0.0-src/cdk/foundation/socket_detail.cc:852:3: note: in expansion of macro &#039;DISABLE_WARNING_CDK&#039;<br />
  852 |   DISABLE_WARNING_CDK(4548)<br />
      |   ^~~~~~~~~~~~~~~~~~~<br />
[11/121] Building CXX object jdbc/driver/CMakeFiles/jdbc.dir/mysql_art_resultset.cpp.obj<br />
FAILED: jdbc/driver/CMakeFiles/jdbc.dir/mysql_art_resultset.cpp.obj<br />
C:\mingw64\bin\c++.exe -DCONCPP_BUILD_SHARED -DHAVE_TYPE_VECTOR -DMYSQLCLIENT_STATIC_BINDING -DNOGDI -DWIN32_LEAN_AND_MEAN -Dconnector_jdbc_EXPORTS -IC:/mysql-connector-c++-9.0.0-build/jdbc/driver -IC:/mysql-connector-c++-9.0.0-src/include -IC:/mysql-connector-c++-9.0.0-src/jdbc -IC:/mysql-connector-c++-9.0.0-build/jdbc -IC:/mysql-connector-c++-9.0.0-build/jdbc/cppconn -IC:/mysql-connector-c++-9.0.0-build/jdbc/driver/nativeapi -isystem &quot;C:/Program Files/MySQL/MySQL Server 9.0/include&quot; -Wall  -fdebug-prefix-map=C:/mysql-connector-c++-9.0.0-src=. -g -std=c++17 -fPIC -fvisibility=hidden -Wno-stringop-overflow -Wno-unused-parameter -Wno-deprecated-declarations -MD -MT jdbc/driver/CMakeFiles/jdbc.dir/mysql_art_resultset.cpp.obj -MF jdbc\driver\CMakeFiles\jdbc.dir\mysql_art_resultset.cpp.obj.d -o jdbc/driver/CMakeFiles/jdbc.dir/mysql_art_resultset.cpp.obj -c C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp<br />
In file included from C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:36,<br />
                 from C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp:37:<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/nativeapi/mysql_private_iface.h:81: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   81 | #pragma warning(disable:4251)<br />
      |<br />
In file included from C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:38:<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/cppconn/sqlstring.h:46: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   46 | #pragma warning(push)<br />
      |<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/cppconn/sqlstring.h:47: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   47 | #pragma warning(disable: 4251)<br />
      |<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/cppconn/sqlstring.h:51: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   51 | #pragma warning(pop)<br />
      |<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp: In member function &#039;uint64_t sql::mysql::MyVal::getUInt64()&#039;:<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp:168:30: error: unable to find numeric literal operator &#039;operator&quot;&quot;ui64&#039;<br />
  168 |       return val.bval ? UL64(1) : UL64(0);<br />
      |                              ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:45:17: note: in definition of macro &#039;UL64&#039;<br />
   45 | #define UL64(x) x##ui64<br />
      |                 ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp:168:30: note: use &#039;-fext-numeric-literals&#039; to enable more built-in suffixes<br />
  168 |       return val.bval ? UL64(1) : UL64(0);<br />
      |                              ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:45:17: note: in definition of macro &#039;UL64&#039;<br />
   45 | #define UL64(x) x##ui64<br />
      |                 ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp:168:40: error: unable to find numeric literal operator &#039;operator&quot;&quot;ui64&#039;<br />
  168 |       return val.bval ? UL64(1) : UL64(0);<br />
      |                                        ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:45:17: note: in definition of macro &#039;UL64&#039;<br />
   45 | #define UL64(x) x##ui64<br />
      |                 ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp:168:40: note: use &#039;-fext-numeric-literals&#039; to enable more built-in suffixes<br />
  168 |       return val.bval ? UL64(1) : UL64(0);<br />
      |                                        ^<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:45:17: note: in definition of macro &#039;UL64&#039;<br />
   45 | #define UL64(x) x##ui64<br />
      |                 ^<br />
[17/121] Building CXX object jdbc/driver/CMakeFiles/jdbc.dir/mysql_art_rset_metadata.cpp.obj<br />
In file included from C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:36,<br />
                 from C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_rset_metadata.cpp:35:<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/driver/nativeapi/mysql_private_iface.h:81: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   81 | #pragma warning(disable:4251)<br />
      |<br />
In file included from C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_util.h:38:<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/cppconn/sqlstring.h:46: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   46 | #pragma warning(push)<br />
      |<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/cppconn/sqlstring.h:47: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   47 | #pragma warning(disable: 4251)<br />
      |<br />
C:/mysql-connector-c++-9.0.0-src/jdbc/cppconn/sqlstring.h:51: warning: ignoring &#039;#pragma warning &#039; [-Wunknown-pragmas]<br />
   51 | #pragma warning(pop)<br />
      |<br />
[18/121] C:\Windows\system32\cmd.exe /C &quot;cd /D C...tor-c++-9.0.0-src/cdk/cmake/ext/ext-build.cmake&quot;<br />
== Running extrnal build at: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/zstd (Debug)<br />
[1/30] Building C object CMakeFiles/zstd.dir/lib/common/threading.c.obj<br />
[2/30] Building C object CMakeFiles/zstd.dir/lib/common/error_private.c.obj<br />
[3/30] Building C object CMakeFiles/zstd.dir/lib/common/debug.c.obj<br />
[4/30] Building C object CMakeFiles/zstd.dir/lib/common/pool.c.obj<br />
[5/30] Building C object CMakeFiles/zstd.dir/lib/common/zstd_common.c.obj<br />
[6/30] Building C object CMakeFiles/zstd.dir/lib/common/entropy_common.c.obj<br />
[7/30] Building C object CMakeFiles/zstd.dir/lib/common/xxhash.c.obj<br />
[8/30] Building C object CMakeFiles/zstd.dir/lib/compress/fse_compress.c.obj<br />
[9/30] Building C object CMakeFiles/zstd.dir/lib/common/fse_decompress.c.obj<br />
[10/30] Building C object CMakeFiles/zstd.dir/lib/compress/hist.c.obj<br />
[11/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_compress_literals.c.obj<br />
[12/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_compress_sequences.c.obj<br />
[13/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_compress_superblock.c.obj<br />
[14/30] Building C object CMakeFiles/zstd.dir/lib/compress/huf_compress.c.obj<br />
[15/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_ldm.c.obj<br />
[16/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_double_fast.c.obj<br />
[17/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstdmt_compress.c.obj<br />
[18/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_compress.c.obj<br />
[19/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_fast.c.obj<br />
[20/30] Building C object CMakeFiles/zstd.dir/lib/decompress/zstd_ddict.c.obj<br />
[21/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_opt.c.obj<br />
[22/30] Building C object CMakeFiles/zstd.dir/lib/dictBuilder/cover.c.obj<br />
[23/30] Building C object CMakeFiles/zstd.dir/lib/decompress/zstd_decompress.c.obj<br />
[24/30] Building C object CMakeFiles/zstd.dir/lib/decompress/huf_decompress.c.obj<br />
[25/30] Building C object CMakeFiles/zstd.dir/lib/decompress/zstd_decompress_block.c.obj<br />
[26/30] Building C object CMakeFiles/zstd.dir/lib/dictBuilder/divsufsort.c.obj<br />
[27/30] Building C object CMakeFiles/zstd.dir/lib/dictBuilder/fastcover.c.obj<br />
[28/30] Building C object CMakeFiles/zstd.dir/lib/dictBuilder/zdict.c.obj<br />
[29/30] Building C object CMakeFiles/zstd.dir/lib/compress/zstd_lazy.c.obj<br />
[30/30] Linking C static library libzstd.a<br />
== Extrnal build done<br />
[20/121] C:\Windows\system32\cmd.exe /C &quot;cd /D C...tor-c++-9.0.0-src/cdk/cmake/ext/ext-build.cmake&quot;<br />
== Running extrnal build at: C:/mysql-connector-c++-9.0.0-build/cdk/protocol/mysqlx/protobuf (Debug)<br />
[1/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arena.cc.obj<br />
[2/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/inlined_string_field.cc.obj<br />
[3/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/implicit_weak_message.cc.obj<br />
[4/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arenastring.cc.obj<br />
[5/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any_lite.cc.obj<br />
[6/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_enum_util.cc.obj<br />
[7/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_util.cc.obj<br />
[8/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_tctable_lite.cc.obj<br />
In file included from C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_lite.cc:36:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h: In function &#039;void google::protobuf::internal::AlignFail(uintptr_t) [with long long unsigned int align = 4]&#039;:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h:103:1: warning: &#039;noreturn&#039; function does return<br />
  103 | }<br />
      | ^<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h: In function &#039;void google::protobuf::internal::AlignFail(uintptr_t) [with long long unsigned int align = 8]&#039;:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h:103:1: warning: &#039;noreturn&#039; function does return<br />
[9/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.obj<br />
[10/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/strtod.cc.obj<br />
[11/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.obj<br />
[12/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream.cc.obj<br />
[13/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/coded_stream.cc.obj<br />
[14/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.obj<br />
[15/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/map.cc.obj<br />
[16/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set.cc.obj<br />
[17/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/parse_context.cc.obj<br />
[18/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/io_win32.cc.obj<br />
[19/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message_lite.cc.obj<br />
[20/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/bytestream.cc.obj<br />
[21/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/int128.cc.obj<br />
[22/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/status.cc.obj<br />
[23/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/statusor.cc.obj<br />
[24/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_field.cc.obj<br />
[25/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/common.cc.obj<br />
[26/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_ptr_field.cc.obj<br />
[27/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringpiece.cc.obj<br />
[28/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringprintf.cc.obj<br />
[29/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/time.cc.obj<br />
[30/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format_lite.cc.obj<br />
[31/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.cc.obj<br />
[32/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/strutil.cc.obj<br />
[33/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.obj<br />
[34/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/api.pb.cc.obj<br />
[35/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/importer.cc.obj<br />
[36/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/structurally_valid.cc.obj<br />
[37/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/duration.pb.cc.obj<br />
[38/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/empty.pb.cc.obj<br />
[39/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/parser.cc.obj<br />
[40/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/dynamic_message.cc.obj<br />
[41/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_bases.cc.obj<br />
[42/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set_heavy.cc.obj<br />
[43/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/field_mask.pb.cc.obj<br />
[44/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/gzip_stream.cc.obj<br />
[45/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor_database.cc.obj<br />
[46/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.pb.cc.obj<br />
[47/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/tokenizer.cc.obj<br />
[48/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_tctable_full.cc.obj<br />
[49/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven.cc.obj<br />
[50/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/printer.cc.obj<br />
[51/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/service.cc.obj<br />
[52/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_reflection.cc.obj<br />
[53/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/substitute.cc.obj<br />
[54/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/map_field.cc.obj<br />
[55/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message.cc.obj<br />
[56/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/source_context.pb.cc.obj<br />
[57/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/reflection_ops.cc.obj<br />
[58/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/timestamp.pb.cc.obj<br />
[59/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/delimited_message_util.cc.obj<br />
[60/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/unknown_field_set.cc.obj<br />
[61/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/struct.pb.cc.obj<br />
[62/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/type.pb.cc.obj<br />
[63/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.obj<br />
[64/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_comparator.cc.obj<br />
[65/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_mask_util.cc.obj<br />
[66/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_escaping.cc.obj<br />
[67/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/error_listener.cc.obj<br />
[68/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/text_format.cc.obj<br />
[69/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/datapiece.cc.obj<br />
[70/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/field_mask_utility.cc.obj<br />
[71/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/object_writer.cc.obj<br />
[72/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_stream_parser.cc.obj<br />
[73/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_objectwriter.cc.obj<br />
[74/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/default_value_objectwriter.cc.obj<br />
[75/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectsource.cc.obj<br />
[76/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info.cc.obj<br />
[77/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/utility.cc.obj<br />
[78/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/proto_writer.cc.obj<br />
[79/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectwriter.cc.obj<br />
[80/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/json_util.cc.obj<br />
[81/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/time_util.cc.obj<br />
[82/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/type_resolver_util.cc.obj<br />
[83/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/code_generator.cc.obj<br />
[84/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format.cc.obj<br />
[85/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.obj<br />
[86/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/message_differencer.cc.obj<br />
[87/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_enum.cc.obj<br />
[88/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_enum_field.cc.obj<br />
[89/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_field.cc.obj<br />
[90/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_extension.cc.obj<br />
[91/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_generator.cc.obj<br />
[92/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_map_field.cc.obj<br />
[93/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_file.cc.obj<br />
[94/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/command_line_interface.cc.obj<br />
[95/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc.obj<br />
[96/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_parse_function_generator.cc.obj<br />
[97/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_message_field.cc.obj<br />
[98/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_helpers.cc.obj<br />
[99/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc.obj<br />
[100/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_doc_comment.cc.obj<br />
[101/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_service.cc.obj<br />
[102/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_enum.cc.obj<br />
[103/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_string_field.cc.obj<br />
[104/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_enum_field.cc.obj<br />
[105/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_message.cc.obj<br />
[106/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_field_base.cc.obj<br />
[107/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_generator.cc.obj<br />
[108/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_helpers.cc.obj<br />
[109/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_map_field.cc.obj<br />
[110/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_message_field.cc.obj<br />
[111/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_message.cc.obj<br />
[112/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc.obj<br />
[113/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc.obj<br />
[114/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc.obj<br />
[115/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc.obj<br />
[116/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc.obj<br />
[117/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc.obj<br />
[118/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc.obj<br />
[119/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_doc_comment.cc.obj<br />
[120/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_context.cc.obj<br />
[121/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum.cc.obj<br />
[122/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_field.cc.obj<br />
[123/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_lite.cc.obj<br />
[124/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_field_lite.cc.obj<br />
[125/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_extension.cc.obj<br />
[126/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_extension_lite.cc.obj<br />
[127/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_field.cc.obj<br />
[128/205] Linking CXX static library protobuf-3.19.6\cmake\libprotobufd.a<br />
[129/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_generator_factory.cc.obj<br />
[130/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_generator.cc.obj<br />
[131/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_file.cc.obj<br />
[132/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_map_field.cc.obj<br />
[133/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_helpers.cc.obj<br />
[134/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_kotlin_generator.cc.obj<br />
[135/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_map_field_lite.cc.obj<br />
[136/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message.cc.obj<br />
[137/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_builder.cc.obj<br />
[138/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_field.cc.obj<br />
[139/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_builder_lite.cc.obj<br />
[140/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_field_lite.cc.obj<br />
[141/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_name_resolver.cc.obj<br />
[142/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/js/well_known_types_embed.cc.obj<br />
[143/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_lite.cc.obj<br />
[144/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_primitive_field_lite.cc.obj<br />
[145/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_service.cc.obj<br />
[146/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_primitive_field.cc.obj<br />
[147/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_shared_code_generator.cc.obj<br />
[148/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_string_field.cc.obj<br />
[149/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_string_field_lite.cc.obj<br />
[150/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_enum.cc.obj<br />
[151/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_extension.cc.obj<br />
[152/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc.obj<br />
[153/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_field.cc.obj<br />
[154/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_generator.cc.obj<br />
[155/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_map_field.cc.obj<br />
[156/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_file.cc.obj<br />
[157/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/js/js_generator.cc.obj<br />
[158/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc.obj<br />
[159/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc.obj<br />
[160/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc.obj<br />
[161/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc.obj<br />
[162/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.cc.obj<br />
[163/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message.cc.obj<br />
[164/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/zip_writer.cc.obj<br />
[165/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arena.cc.obj<br />
[166/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.pb.cc.obj<br />
[167/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/any_lite.cc.obj<br />
[168/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/subprocess.cc.obj<br />
[169/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/php/php_generator.cc.obj<br />
[170/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/python/python_generator.cc.obj<br />
[171/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/ruby/ruby_generator.cc.obj<br />
[172/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_enum_util.cc.obj<br />
[173/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arenastring.cc.obj<br />
[174/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/strtod.cc.obj<br />
[175/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.obj<br />
[176/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/extension_set.cc.obj<br />
[177/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_tctable_lite.cc.obj<br />
In file included from C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_lite.cc:36:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h: In function &#039;void google::protobuf::internal::AlignFail(uintptr_t) [with long long unsigned int align = 4]&#039;:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h:103:1: warning: &#039;noreturn&#039; function does return<br />
  103 | }<br />
      | ^<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h: In function &#039;void google::protobuf::internal::AlignFail(uintptr_t) [with long long unsigned int align = 8]&#039;:<br />
C:/mysql-connector-c++-9.0.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h:103:1: warning: &#039;noreturn&#039; function does return<br />
[178/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/coded_stream.cc.obj<br />
[179/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/implicit_weak_message.cc.obj<br />
[180/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/inlined_string_field.cc.obj<br />
[181/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_util.cc.obj<br />
[182/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream.cc.obj<br />
[183/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/io_win32.cc.obj<br />
[184/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.obj<br />
[185/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.obj<br />
[186/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/map.cc.obj<br />
[187/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/bytestream.cc.obj<br />
[188/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/repeated_ptr_field.cc.obj<br />
[189/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/statusor.cc.obj<br />
[190/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/parse_context.cc.obj<br />
[191/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/status.cc.obj<br />
[192/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/message_lite.cc.obj<br />
[193/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/int128.cc.obj<br />
[194/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringpiece.cc.obj<br />
[195/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringprintf.cc.obj<br />
[196/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/repeated_field.cc.obj<br />
[197/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/common.cc.obj<br />
[198/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/structurally_valid.cc.obj<br />
[199/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/time.cc.obj<br />
[200/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/strutil.cc.obj<br />
[201/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/protoc.dir/__/src/google/protobuf/compiler/main.cc.obj<br />
[202/205] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/wire_format_lite.cc.obj<br />
[203/205] Linking CXX static library protobuf-3.19.6\cmake\libprotobuf-lited.a<br />
[204/205] Linking CXX static library protobuf-3.19.6\cmake\libprotocd.a<br />
[205/205] Linking CXX executable runtime_output_directory\protoc.exe<br />
== Extrnal build done<br />
ninja: build stopped: subcommand failed.<br />
<br />
Anyone know the solution to this?]]></description>
            <dc:creator>G. Dinusha Sandaruwan</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 30 Aug 2024 10:26:07 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,724522,724522#msg-724522</guid>
            <title>Please help.  cant get connector to work, unresolved external symbol error (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,724522,724522#msg-724522</link>
            <description><![CDATA[ So,  I&#039;m at the end of my tether.  I&#039;m one week in now of trying to solve this and I think I&#039;m going insane.  Caveat:  I am a bit of a noob, so could possibly be doing something stupid.<br />
I plan to make a program to capture data on my serial port and send to my db.  I thought before I do so, I would just try out a simple program using the C++ connector, this was it:<br />
<br />
#include &lt;mysqlx/xdevapi.h&gt;<br />
#include &lt;iostream&gt;<br />
<br />
using namespace ::mysqlx;<br />
using std::cout;<br />
<br />
int main() {<br />
    cout &lt;&lt; &quot;Hello MySQL X DevAPI!&quot; &lt;&lt; std::endl;<br />
    return 0;<br />
}<br />
<br />
<br />
I first started out using codelite and minGW.  No joy, so I switched to vs code, again, no joy.  Eventually I stumbled on to a youtube video where some kind fella had posted a walkthrough.  So now, I&#039;m just trying to get his code working, using VS community 2022.  I followed his method, verbatim.  This is his code.  Yes i know I was using mysqlx before, and I was using the correct library for that.  But I&#039;m thinking if I can just get something working, it will probably lead me to why my previous attempts failed.  Here is the new code:<br />
<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;iostream&gt;<br />
#include &quot;stdafx.h&quot;<br />
<br />
#include &quot;mysql_connection.h&quot;<br />
#include &lt;cppconn/driver.h&gt;<br />
#include &lt;cppconn/exception.h&gt;<br />
#include &lt;cppconn/prepared_statement.h&gt;<br />
using namespace std;<br />
<br />
//for demonstration only. never save your password in the code!<br />
const string server = &quot;tcp://yourservername.mysql.database.azure.com:3306&quot;;<br />
const string username = &quot;username@servername&quot;;<br />
const string password = &quot;yourpassword&quot;;<br />
<br />
int main()<br />
{<br />
	sql::Driver* driver;<br />
	sql::Connection* con;<br />
	sql::Statement* stmt;<br />
	sql::PreparedStatement* pstmt;<br />
<br />
	try<br />
	{<br />
		driver = get_driver_instance();<br />
		con = driver-&gt;connect(server, username, password);<br />
	}<br />
	catch (sql::SQLException e)<br />
	{<br />
		cout &lt;&lt; &quot;Could not connect to server. Error message: &quot; &lt;&lt; e.what() &lt;&lt; endl;<br />
		system(&quot;pause&quot;);<br />
		exit(1);<br />
	}<br />
<br />
	//please create database &quot;quickstartdb&quot; ahead of time<br />
	con-&gt;setSchema(&quot;quickstartdb&quot;);<br />
<br />
	stmt = con-&gt;createStatement();<br />
	stmt-&gt;execute(&quot;DROP TABLE IF EXISTS inventory&quot;);<br />
	cout &lt;&lt; &quot;Finished dropping table (if existed)&quot; &lt;&lt; endl;<br />
	stmt-&gt;execute(&quot;CREATE TABLE inventory (id serial PRIMARY KEY, name VARCHAR(50), quantity INTEGER);&quot;);<br />
	cout &lt;&lt; &quot;Finished creating table&quot; &lt;&lt; endl;<br />
	delete stmt;<br />
<br />
	pstmt = con-&gt;prepareStatement(&quot;INSERT INTO inventory(name, quantity) VALUES(?,?)&quot;);<br />
	pstmt-&gt;setString(1, &quot;banana&quot;);<br />
	pstmt-&gt;setInt(2, 150);<br />
	pstmt-&gt;execute();<br />
	cout &lt;&lt; &quot;One row inserted.&quot; &lt;&lt; endl;<br />
<br />
	pstmt-&gt;setString(1, &quot;orange&quot;);<br />
	pstmt-&gt;setInt(2, 154);<br />
	pstmt-&gt;execute();<br />
	cout &lt;&lt; &quot;One row inserted.&quot; &lt;&lt; endl;<br />
<br />
	pstmt-&gt;setString(1, &quot;apple&quot;);<br />
	pstmt-&gt;setInt(2, 100);<br />
	pstmt-&gt;execute();<br />
	cout &lt;&lt; &quot;One row inserted.&quot; &lt;&lt; endl;<br />
<br />
	delete pstmt;<br />
	delete con;<br />
	system(&quot;pause&quot;);<br />
	return 0;<br />
<br />
Include path is set to the JDBC folder, and the linker to the vs14 folder, mysqlcppconn-static.lib<br />
<br />
Here is the YT tutorial I followed:<br />
<a href="https://www.youtube.com/watch?v=a_W4zt5sR1M&amp;list=LL&amp;index=4&amp;t=53s"  rel="nofollow">https://www.youtube.com/watch?v=a_W4zt5sR1M&amp;list=LL&amp;index=4&amp;t=53s</a><br />
<br />
And here is my error when I try and build the solution:<br />
<br />
Severity	Code	Description	Project	File	Line	Suppression State	Details<br />
Error	LNK2001	unresolved external symbol &quot;__declspec(dllimport) void __cdecl check(class std::map&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,struct std::less&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;,class std::allocator&lt;struct std::pair&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const ,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt; &gt; &gt; const &amp;)&quot; (__imp_?check@@YAXAEBV?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@Z)	mysqlProject1	C:\Users\me\Desktop\vs_workspace\mysqlProject1\mysqlProject1\main.obj	1		<br />
<br />
<br />
I would be most grateful if somebody could point me in the right direction of where I am going wrong...  I&#039;m literally worn out by it all...  If I followed the walkthrough, then why do I get such errors...<br />
<br />
Thanks]]></description>
            <dc:creator>Bernie Sensation</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Wed, 29 May 2024 20:08:07 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,723317,723317#msg-723317</guid>
            <title>mysql-connector-cpp  tableinsert how to release (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,723317,723317#msg-723317</link>
            <description><![CDATA[ mysqlx:: about TableInsert, use the values function add content,after execute(),<br />
how can i release the original content to avoid duplicate insertions.]]></description>
            <dc:creator>ZKK KKZ</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Thu, 14 Mar 2024 01:59:57 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,717751,717751#msg-717751</guid>
            <title>xdevapi - dynamic queries - multiple queries (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,717751,717751#msg-717751</link>
            <description><![CDATA[ I&#039;m working on converting a project from using the legacy JDBC connector to xdevapi. I know I can replicate what I&#039;m doing right now using the session.sql classes and functions. However, I&#039;d like to use the CRUD operations described in the documentation. That said, I can&#039;t figure out any way to create dynamic queries - ie. a select statement where I don&#039;t know how many columns will be needed at compile time. I thought perhaps I could call select(&quot;column_name&quot;) functions before doing .execute(), but that didn&#039;t work. I also considered perhaps I could use a vector of strings, but that wasn&#039;t accepted either. Any help here?<br />
<br />
My other question, is there a way to send multiple queries to the database at once? The database is on a server, its not necessarily local, and the mysql queries are the most expensive thing the program does. Sending multiple queries at once makes things considerably more efficient, but I didn&#039;t see any documentation on that.<br />
<br />
Thank you in advance!]]></description>
            <dc:creator>Ian James</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Fri, 26 Jan 2024 00:55:40 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,712012,712012#msg-712012</guid>
            <title>in eclipse mysql connector/c++ not working on M1 Macbook air (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,712012,712012#msg-712012</link>
            <description><![CDATA[ Using Eclipse, I am trying to create a simple example of how to query a mysql database using the mysql connector/c++<br />
<br />
I keep getting this error Description Resource Path Location Type exception specification of overriding function is more lax than base version mysqlCppProj line 91, external location: /Users/me/c++Libraries/mysql-connector-c++-8.2.0-macos13-arm64/include/jdbc/cppconn/exception.h C/C++ Problem<br />
<br />
I am using Eclipse IDE for C/C++ Developers (includes Incubating components)<br />
<br />
Version: 2023-12 (4.30.0) Build id: 20231201-2043<br />
<br />
Any solution I find is dated from 2012 or there abouts.]]></description>
            <dc:creator>Dean Rochester</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Mon, 11 Dec 2023 03:00:26 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,710421,710421#msg-710421</guid>
            <title>Constructing a MySQL Connector/C++ class object after one is destroyed (2 replies)</title>
            <link>https://forums.mysql.com/read.php?167,710421,710421#msg-710421</link>
            <description><![CDATA[ Using MySQL Connector/C++ 8.0 I define a Database class and construct an object of that class to connect to the database. That works fine. If that object is destroyed and I try to construct another one, then it fails.<br />
<br />
Here&#039;s the class:<br />
<br />
  class Database {<br />
    private:<br />
      std::unique_ptr&lt;mysqlx::Session&gt; _session;<br />
      std::unique_ptr&lt;mysqlx::Table&gt;   _table;<br />
      std::unique_ptr&lt;mysqlx::Schema&gt;  _schema;<br />
    public:<br />
      Database( std::string host,<br />
                int         port,<br />
                std::string user,<br />
                std::string pass,<br />
                std::string schema,<br />
                std::string table ) {<br />
        _session = std::make_unique&lt;mysqlx::Session&gt; ( mysqlx::SessionOption::HOST, host,<br />
                                                       mysqlx::SessionOption::PORT, port,<br />
                                                       mysqlx::SessionOption::USER, user,<br />
                                                       mysqlx::SessionOption::PWD,  pass );<br />
<br />
        _schema  = std::make_unique&lt;mysqlx::Schema&gt;( *_session, schema );<br />
        _table   = std::make_unique&lt;mysqlx::Table&gt;( _schema-&gt;getTable( table ) );<br />
<br />
        void write( std::map&lt;std::string, std::string&gt; data );  // details not pertinent here<br />
<br />
        // close might be overkill? shouldn&#039;t things get cleaned up when<br />
        // the object goes out of scope and is deconstructed?<br />
        //<br />
        inline void close() { _session-&gt;close(); _session.reset(); _table.reset(); _schema.reset(); }<br />
      }<br />
  }<br />
<br />
I can instantiate a Database object in a thread (only one such &quot;database&quot; thread can ever be started at a time, so there is never any risk of contention), such as:<br />
<br />
  void SomeClass::dothread_db( host,port,... etc.. ) {<br />
    try {<br />
      Database::Database database(host,port,user,pass,schema,table);<br />
      while (condition ) {<br />
        database.write(...);<br />
        // things can change the condition<br />
      }<br />
<br />
      database.close();  // is this even needed?<br />
<br />
    } catch etc..<br />
<br />
    return;<br />
  }<br />
<br />
I can spawn dothread_db once, and it connects to the database and writes to it all day long, but if the conditions are met such that it completes, and then I try to spawn another one, I will get one of two possible errors:<br />
<br />
CDK Error: OpenSSL: error:00000000:lib(0):func(0):reason(0)<br />
<br />
or<br />
<br />
CDK Error: Bad file descriptor (generic:9)<br />
<br />
when it tries to construct the Database object. I see no messages in /var/log/mysql/ logs.]]></description>
            <dc:creator>David Hale</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Tue, 07 Nov 2023 19:16:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,710338,710338#msg-710338</guid>
            <title>Need help to put the static libs working in c nor in c++ (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,710338,710338#msg-710338</link>
            <description><![CDATA[ hi, i am trying to put the mysql librarys has statik in codeblocks, but i cant.<br />
in c ++ give me <br />
undefined refenred to check(std::__cxxll::basic_string&lt;...&gt;...)<br />
undefined refenred to sql::mysql::_get_driver:instance:by_name()<br />
<br />
in c <br />
i can do the dinamic but can&#039;t in stack it gives alot of errores starting with fprinf... makes no sense<br />
<br />
<br />
please help]]></description>
            <dc:creator>rafael roda</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Sun, 29 Oct 2023 12:09:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,710133,710133#msg-710133</guid>
            <title>can build connector app: symbols(s) not found for architecture arm64 (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,710133,710133#msg-710133</link>
            <description><![CDATA[ Hi guys,<br />
<br />
beginner here, I&#039;m having trouble with my first mysql project. I&#039;ve downloaded the c++ connector for arm64 and am trying to use it with X DevAPI in my program. But, when building I&#039;m running into the following error message:<br />
<br />
FAILED: mysql_test <br />
: &amp;&amp; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=13.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/mysql_test.dir/main.cpp.o -o mysql_test   &amp;&amp; :<br />
Undefined symbols for architecture arm64:<br />
  &quot;mysqlx::abi2::r0::common::Settings_impl::Data::init_connection_attr()&quot;, referenced from:<br />
      mysqlx::abi2::r0::common::Settings_impl::Data::Data() in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::string::Impl::from_utf8(mysqlx::abi2::r0::string&amp;, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;)&quot;, referenced from:<br />
      mysqlx::abi2::r0::string::traits&lt;char&gt;::from_str(mysqlx::abi2::r0::string&amp;, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;) in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::internal::Session_detail::close()&quot;, referenced from:<br />
      mysqlx::abi2::r0::internal::Session_detail::~Session_detail() in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::internal::Session_detail::Name_src::Name_src(mysqlx::abi2::r0::Session const&amp;, mysqlx::abi2::r0::string const&amp;)&quot;, referenced from:<br />
      mysqlx::abi2::r0::Schema::existsInDatabase() const in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::internal::Session_detail::Session_detail(mysqlx::abi2::r0::common::Settings_impl&amp;)&quot;, referenced from:<br />
      mysqlx::abi2::r0::Session::Session(mysqlx::abi2::r0::SessionSettings) in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::do_set(std::__1::list&lt;std::__1::pair&lt;int, mysqlx::abi2::r0::Value&gt;, std::__1::allocator&lt;std::__1::pair&lt;int, mysqlx::abi2::r0::Value&gt; &gt; &gt;&amp;&amp;)&quot;, referenced from:<br />
      void mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::set&lt;true, mysqlx::abi2::r0::SessionOption::Enum, char const*&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;, int&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt;&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt;&amp;&gt;(mysqlx::abi2::r0::SessionOption::Enum, char const*&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;, int&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt;&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;, std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt;&amp;) in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::internal::Query_src::iterator_next()&quot;, referenced from:<br />
      mysqlx::abi2::r0::Schema::existsInDatabase() const in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::internal::Query_src::~Query_src()&quot;, referenced from:<br />
      mysqlx::abi2::r0::internal::Session_detail::Name_src::~Name_src() in main.cpp.o<br />
  &quot;mysqlx::abi2::r0::common::Value::print(std::__1::basic_ostream&lt;char, std::__1::char_traits&lt;char&gt; &gt;&amp;) const&quot;, referenced from:<br />
      mysqlx::abi2::r0::Value::print(std::__1::basic_ostream&lt;char, std::__1::char_traits&lt;char&gt; &gt;&amp;) const in main.cpp.o<br />
      construction vtable for mysqlx::abi2::r0::common::Value-in-mysqlx::abi2::r0::Value in main.cpp.o<br />
  &quot;typeinfo for mysqlx::abi2::r0::common::Value&quot;, referenced from:<br />
      construction vtable for mysqlx::abi2::r0::common::Value-in-mysqlx::abi2::r0::Value in main.cpp.o<br />
      typeinfo for mysqlx::abi2::r0::Value in main.cpp.o<br />
  &quot;VTT for mysqlx::abi2::r0::common::Value&quot;, referenced from:<br />
      mysqlx::abi2::r0::common::Value::~Value() in main.cpp.o<br />
  &quot;vtable for mysqlx::abi2::r0::DbDoc&quot;, referenced from:<br />
      mysqlx::abi2::r0::DbDoc::~DbDoc() in main.cpp.o<br />
      mysqlx::abi2::r0::DbDoc::DbDoc() in main.cpp.o<br />
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.<br />
ld: symbol(s) not found for architecture arm64<br />
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br />
ninja: build stopped: subcommand failed.<br />
<br />
<br />
Thank you for any responses:D]]></description>
            <dc:creator>adam DKV-Auslandskrankenverischerung</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Sun, 08 Oct 2023 20:21:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,709017,709017#msg-709017</guid>
            <title>Use MysQL connector client 6.1.11 with MySQL 8.0.32 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,709017,709017#msg-709017</link>
            <description><![CDATA[ Use MysQL connector client 6.1.11 with MySQL 8.0.32. SSL connections to MySQL 8 from 6.1.11 &#039;c&#039; connector. How do I set the TLS version ? I am getting &quot;SSL connection error: TLS version is invalid&quot; even though both server and client are using TLSv1.2]]></description>
            <dc:creator>Deepak Sharma</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Mon, 15 May 2023 13:58:53 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,709004,709004#msg-709004</guid>
            <title>Shared memory protocol for windows clients (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,709004,709004#msg-709004</link>
            <description><![CDATA[ Is anyone successfully using this? <br />
I&#039;m trying to connect but keep getting the 2046 error about client not being able to create the request event and can&#039;t connect to shared memory.  I&#039;ve tried all the normal tricks that are documented. <br />
What could I be missing?<br />
<br />
Error number: 2046; Symbol: CR_SHARED_MEMORY_CONNECT_SET_ERROR;<br />
<br />
Message: Can&#039;t open shared memory; cannot send request event to server (%lu)]]></description>
            <dc:creator>Paul Reds</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Sat, 13 May 2023 04:24:50 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,708999,708999#msg-708999</guid>
            <title>variant.h error with MySQl c++ CONNECTOR (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,708999,708999#msg-708999</link>
            <description><![CDATA[ I installed connector 8.0<br />
when I try to run a c++ program in Visual Studio 22, I get:<br />
<br />
Severity	Code	Description	Project	File	Line	Suppression State<br />
Warning	C26495	Variable &#039;sql::Variant::variant&#039; is uninitialized. Always initialize a member variable (type.6).	mysql_dev	C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc\cppconn\variant.h	298	<br />
<br />
Any help is appreciated.<br />
Thanks,<br />
Jim...]]></description>
            <dc:creator>Jim Gerland</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Thu, 11 May 2023 20:04:46 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,708826,708826#msg-708826</guid>
            <title>mysql connector 8.0.32 c++ can&#039;t get results don&#039;t understand (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,708826,708826#msg-708826</link>
            <description><![CDATA[ This code is connecting.   I was able to create tables without any problems.  Now I want to run queries and get the results.  Tried a lot, not sure of the documentation.  I looked at the .h files and couldn&#039;t figure it out.<br />
<br />
After I execute:  <br />
res = stmt-&gt;execute(&quot;select * from user&quot;); //&lt;&lt;&lt;this must be wrong.<br />
   while (res-&gt;next()) {<br />
<br />
   }<br />
<br />
what are the exact steps from the stmt-&gt;execute  //or something else,<br />
to reading each tuple in the results?<br />
<br />
Thanks<br />
<br />
   sql::Driver* driver;<br />
   sql::Connection* con;<br />
   sql::Statement* stmt;<br />
    //sql::PreparedStatement* pstmt;<br />
   sql::ResultSet* res;<br />
<br />
    try<br />
    {<br />
        driver = get_driver_instance();<br />
        con = driver-&gt;connect(server, username, password);<br />
    }<br />
    catch (sql::SQLException e)<br />
    {<br />
        cout &lt;&lt; &quot;Could not connect to server. Error message: &quot; &lt;&lt; e.what() &lt;&lt; endl;<br />
        system(&quot;pause&quot;);<br />
        exit(1);<br />
    }<br />
    cout &lt;&lt; &quot;connected to server&quot; &lt;&lt; endl;<br />
<br />
    <br />
   stmt = con-&gt;createStatement();<br />
   stmt-&gt;execute(&quot;USE comp440&quot;);<br />
   stmt = con-&gt;createStatement();<br />
   res = stmt-&gt;execute(&quot;select * from user&quot;); //&lt;&lt;&lt;this must be wrong.<br />
   while (res-&gt;next()) {<br />
        // You can use either numeric offsets...<br />
        cout &lt;&lt; &quot;id = &quot; &lt;&lt; res-&gt;getInt(1); // getInt(1) returns the first column<br />
        // ... or column names for accessing results.<br />
        // The latter is recommended.<br />
        //cout &lt;&lt; &quot;, label = &#039;&quot; &lt;&lt; res-&gt;getString(&quot;label&quot;) &lt;&lt; &quot;&#039;&quot; &lt;&lt; endl;<br />
    }]]></description>
            <dc:creator>Wayne Rasmussen</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Sun, 23 Apr 2023 03:09:51 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,708805,708805#msg-708805</guid>
            <title>Prepared queries in Connector C++ (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,708805,708805#msg-708805</link>
            <description><![CDATA[ I can&#039;t seem to find any documentation on how to used prepared queries using Connector C++ 8.0 library. How do I create a prepared query and how do I set the parameters before executing it?]]></description>
            <dc:creator>James Cooper</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Thu, 20 Apr 2023 16:37:02 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,708796,708796#msg-708796</guid>
            <title>Getting query results as strings (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,708796,708796#msg-708796</link>
            <description><![CDATA[ For a general SQL query, I want to return a map of columns and values converted to strings. However, while cout prints out the value of row[index], I cannot find a way to make sure it is a string rather than some other type. Code like the following fails because I can&#039;t convert that row element to a string. How do I go about this?<br />
while ((row = res.fetchOne())) {<br />
		for (unsigned index = 0; index &lt; res.getColumnCount(); index++) {		<br />
			cout &lt;&lt; columns[index].getColumnName() &lt;&lt; &quot;: &quot; <br />
                                      &lt;&lt; row[index] &lt;&lt; endl;<br />
			string s1 = columns[index].getColumnName();<br />
			string s2 = string(row[index]); //THIS FAILS<br />
			stpRow-&gt;insert({ s1, s2 });  //add to current map<br />
		}]]></description>
            <dc:creator>James Cooper</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Wed, 19 Apr 2023 19:31:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,708692,708692#msg-708692</guid>
            <title>MySQL sample test  with C++ get build problem (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,708692,708692#msg-708692</link>
            <description><![CDATA[ 1. I use winddow 10 ,  vs2002 C++ ,MySQL community 8.0.32, Connector C++8.0.32<br />
2. the vsc++ and mySQL seemed already linked successful, because I can query or insert record with vsc++ in mySQL  with SQL session.<br />
<br />
3.When I test the sample code in page 6 ,in &quot;X DevAPI User Guide&quot; , there is alway build problem happened :<br />
<br />
#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
#include &lt;mysqlx/xdevapi.h&gt;<br />
using namespace std;<br />
using namespace mysqlx; <br />
<br />
int main()<br />
{<br />
    Session mySession(&quot;localhost&quot;, 33060, &quot;root&quot;, &quot;passwd&quot;);<br />
    <br />
    Schema db = mySession.getSchema(&quot;sakila&quot;);<br />
    Collection act = db.getCollection(&quot;actor&quot;);   // get table info<br />
    DocResult res = act.find(&quot;first_name like :param&quot;)//RowResult<br />
        .limit(1)<br />
        .bind(&quot;param&quot;, &quot;L%&quot;).execute();<br />
    cout &lt;&lt; res.fetchOne();<br />
    mySession.close();<br />
}<br />
<br />
above is my code try to select data from sample database &quot;sakil&quot;,tabel &quot;actor&quot;.<br />
<br />
build stop in header file &quot;xdevapi.h&quot; ,said &quot;abnormal unhandled&quot; in <br />
template&lt;typename...T&gt;<br />
  Session(T...options)<br />
  try<br />
    : Session(SessionSettings(options...))<br />
  {}CATCH_AND_WRAP<br />
<br />
<br />
i don&#039;t know how to do , very appreciate for your help]]></description>
            <dc:creator>tom tom</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Sun, 09 Apr 2023 10:54:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,707050,707050#msg-707050</guid>
            <title>Connector crashing on Windows (14 replies)</title>
            <link>https://forums.mysql.com/read.php?167,707050,707050#msg-707050</link>
            <description><![CDATA[ I am trying to install and use the c++ connector. I downloaded the DEBUG version of the connector. Linked the mysqlcppconn8.lib to my project, added the libcrypto-1_1.dll, libssl-1_1.dll and mysqlcppconn8-2-vs14.dll to my project directory. It compiles, seems to work, but crashes when opening a session. It looks like a bad library linked to the wrong dll or something (even though I did use both from the windows debug package).<br />
I also added the preprocessor flag STATIC_CONCPP.<br />
<br />
A simple: mysqlx::Session Sess(mysqlx://&quot;root@127.0.0.1&quot;) crashes in the function:<br />
<br />
Session(SessionSettings settings)<br />
try<br />
: Session_detail(settings)<br />
{}<br />
CATCH_AND_WRAP<br />
<br />
with multiple memory errors like:<br />
cdk::foundation::Generic_error at memory location 0x00AEE30C<br />
[rethrow] at memory location 0x00000000.<br />
mysqlx::abi2::r0::Error at memory location 0x00AEE9F0.<br />
<br />
<br />
I use VS 2019 on windows. Downloaded the latest connector on DEBUG (I compile on DEBUG too).<br />
<br />
Any idea?]]></description>
            <dc:creator>Eric Bouchard</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Thu, 22 Dec 2022 10:30:04 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,706781,706781#msg-706781</guid>
            <title>cmake error when using xdevapi (3 replies)</title>
            <link>https://forums.mysql.com/read.php?167,706781,706781#msg-706781</link>
            <description><![CDATA[ hello there<br />
<br />
i finally managed to include this lib in my project by installing<br />
<br />
mysql-apt-config_0.8.24-1_all.deb<br />
mysql-community-client-plugins<br />
libmysqlcppconn8-2_8.0.31-1ubuntu22.04_amd64.deb<br />
libmysqlcppconn9_8.0.31-1ubuntu22.04_amd64.deb<br />
libmysqlcppconn-dev_8.0.31-1ubuntu22.04_amd64.deb<br />
<br />
i dont know why it has to be so complicated<br />
<br />
now when i work in IDE everything seems fine i can navigate myself to declarations in /usr/include/mysql-cppconn-8/mysqlx/xdevapi.h but when im trying to build and compile im getting error<br />
<br />
this is very simplified representation of my cmake config<br />
<br />
add_library(MySQL MySQL.h MySQL.cpp)<br />
target_link_libraries(MySQL PUBLIC Config mysqlcppconn)<br />
add_executable(Auth Auth/Main.cpp)<br />
<br />
inside MySQL.cpp i have<br />
 <br />
#include &lt;mysql-cppconn-8/mysqlx/xdevapi.h&gt;<br />
<br />
just including it already causes this<br />
<br />
FAILED: Servers/Auth <br />
: &amp;&amp; /usr/bin/c++ -g  Servers/CMakeFiles/Auth.dir/Auth/Main.cpp.o -o Servers/Auth  Core/Models/Auth/libAccount.a  Core/Models/libModel.a  Database/MySQL/libMySQL.a  Config/libConfig.a  Support/libDotEnv.a  -lmysqlcppconn &amp;&amp; :<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): warning: relocation against `_ZTVN6mysqlx4abi22r05DbDocE&#039; in read-only section `.text._ZN6mysqlx4abi22r05DbDocD2Ev[_ZN6mysqlx4abi22r05DbDocD5Ev]&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::string::traits&lt;char&gt;::to_str[abi:cxx11](mysqlx::abi2::r0::string const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/common.h:225: undefined reference to `mysqlx::abi2::r0::string::Impl::to_utf8[abi:cxx11](mysqlx::abi2::r0::string const&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::DbDoc::DbDoc()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:107: undefined reference to `vtable for mysqlx::abi2::r0::DbDoc&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::DbDoc::~DbDoc()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:81: undefined reference to `vtable for mysqlx::abi2::r0::DbDoc&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::Value::print(std::ostream&amp;) const&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:508: undefined reference to `mysqlx::abi2::r0::common::Value::print(std::ostream&amp;) const&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTCN6mysqlx4abi22r05ValueE0_NS1_6common5ValueE[_ZTVN6mysqlx4abi22r05ValueE]+0x18): undefined reference to `typeinfo for mysqlx::abi2::r0::common::Value&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTCN6mysqlx4abi22r05ValueE0_NS1_6common5ValueE[_ZTVN6mysqlx4abi22r05ValueE]+0x20): undefined reference to `mysqlx::abi2::r0::common::Value::print(std::ostream&amp;) const&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTIN6mysqlx4abi22r05ValueE[_ZTIN6mysqlx4abi22r05ValueE]+0x28): undefined reference to `typeinfo for mysqlx::abi2::r0::common::Value&#039;<br />
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE<br />
collect2: error: ld returned 1 exit status<br />
ninja: build stopped: subcommand failed.<br />
<br />
and when i add actual code to execute simple select it gives this<br />
<br />
FAILED: Servers/Auth <br />
: &amp;&amp; /usr/bin/c++ -g  Servers/CMakeFiles/Auth.dir/Auth/Main.cpp.o -o Servers/Auth  Core/Models/Auth/libAccount.a  Core/Models/libModel.a  Database/MySQL/libMySQL.a  Config/libConfig.a  Support/libDotEnv.a  -lmysqlcppconn &amp;&amp; :<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): warning: relocation against `_ZTVN6mysqlx4abi22r06common5ValueE&#039; in read-only section `.text._ZN6mysqlx4abi22r06common5ValueD1Ev[_ZN6mysqlx4abi22r06common5ValueD1Ev]&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::common::Settings_impl::Data::Data()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/common/settings.h:217: undefined reference to `mysqlx::abi2::r0::common::Settings_impl::Data::init_connection_attr()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::common::Value::~Value()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/common/value.h:61: undefined reference to `vtable for mysqlx::abi2::r0::common::Value&#039;<br />
/usr/bin/ld: /usr/include/mysql-cppconn-8/mysqlx/common/value.h:61: undefined reference to `vtable for mysqlx::abi2::r0::common::Value&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::string::traits&lt;char&gt;::from_str(mysqlx::abi2::r0::string&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/common.h:220: undefined reference to `mysqlx::abi2::r0::string::Impl::from_utf8(mysqlx::abi2::r0::string&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::string::traits&lt;char&gt;::to_str[abi:cxx11](mysqlx::abi2::r0::string const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/common.h:225: undefined reference to `mysqlx::abi2::r0::string::Impl::to_utf8[abi:cxx11](mysqlx::abi2::r0::string const&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::DbDoc::DbDoc()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:107: undefined reference to `vtable for mysqlx::abi2::r0::DbDoc&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::DbDoc::~DbDoc()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:81: undefined reference to `vtable for mysqlx::abi2::r0::DbDoc&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::Value::print(std::ostream&amp;) const&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:508: undefined reference to `mysqlx::abi2::r0::common::Value::print(std::ostream&amp;) const&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::DbDoc::DbDoc(mysqlx::abi2::r0::DbDoc const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/document.h:81: undefined reference to `vtable for mysqlx::abi2::r0::DbDoc&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::Row::get(unsigned long)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/row.h:162: undefined reference to `mysqlx::abi2::r0::internal::Row_detail::get_val(unsigned long)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::Row::set(unsigned long, mysqlx::abi2::r0::Value const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/row.h:180: undefined reference to `mysqlx::abi2::r0::internal::Row_detail::get_val(unsigned long)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::Row::operator[](unsigned long)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/row.h:208: undefined reference to `mysqlx::abi2::r0::internal::Row_detail::ensure_impl()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Row_result_detail&lt;mysqlx::abi2::r0::Columns&gt;::~Row_result_detail()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/result.h:314: undefined reference to `mysqlx::abi2::r0::internal::Result_detail::~Result_detail()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::TableSelect::TableSelect(mysqlx::abi2::r0::Table&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/table_crud.h:266: undefined reference to `mysqlx::abi2::r0::internal::Crud_factory::mk_select(mysqlx::abi2::r0::Table&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Schema_detail::Name_src::~Name_src()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/session.h:178: undefined reference to `mysqlx::abi2::r0::internal::Query_src::~Query_src()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Schema_detail::Table_src::Table_src(mysqlx::abi2::r0::Schema const&amp;, mysqlx::abi2::r0::string const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/session.h:205: undefined reference to `mysqlx::abi2::r0::internal::Schema_detail::Name_src::Name_src(mysqlx::abi2::r0::Schema const&amp;, mysqlx::abi2::r0::internal::Schema_detail::Obj_type, mysqlx::abi2::r0::string const&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Session_detail::~Session_detail()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/session.h:379: undefined reference to `mysqlx::abi2::r0::internal::Session_detail::close()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::Session::Session(mysqlx::abi2::r0::SessionSettings)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/xdevapi.h:1684: undefined reference to `mysqlx::abi2::r0::internal::Session_detail::Session_detail(mysqlx::abi2::r0::common::Settings_impl&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `void mysqlx::abi2::r0::internal::Row_detail::set_values&lt;mysqlx::abi2::r0::Value&gt;(unsigned long, mysqlx::abi2::r0::Value)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/row.h:96: undefined reference to `mysqlx::abi2::r0::internal::Row_detail::ensure_impl()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Row_result_detail&lt;mysqlx::abi2::r0::Columns&gt;::get_row()&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/result.h:372: undefined reference to `mysqlx::abi2::r0::internal::Row_result_detail&lt;mysqlx::abi2::r0::Columns&gt;::iterator_next()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Result_common&lt;mysqlx::abi2::r0::internal::Row_result_detail&lt;mysqlx::abi2::r0::Columns&gt; &gt;::Result_common(mysqlx::abi2::r0::common::Result_init&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/result.h:149: undefined reference to `mysqlx::abi2::r0::internal::Row_result_detail&lt;mysqlx::abi2::r0::Columns&gt;::Row_result_detail(mysqlx::abi2::r0::common::Result_init&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Iterator&lt;mysqlx::abi2::r0::internal::Schema_detail::Table_src, mysqlx::abi2::r0::Table, long, mysqlx::abi2::r0::Table*, mysqlx::abi2::r0::Table&amp;&gt;::operator*() const&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/common.h:441: undefined reference to `mysqlx::abi2::r0::internal::Schema_detail::Table_src::iterator_get()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `void mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::set&lt;true, mysqlx::abi2::r0::SessionOption, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, mysqlx::abi2::r0::SessionOption::Enum, unsigned int&amp;, mysqlx::abi2::r0::SessionOption::Enum, mysqlx::abi2::r0::string const&amp;&gt;(mysqlx::abi2::r0::SessionOption, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;&amp;, unsigned int&amp;, mysqlx::abi2::r0::SessionOption::Enum&amp;&amp;, mysqlx::abi2::r0::string const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/settings.h:68: undefined reference to `mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::do_set(std::__cxx11::list&lt;std::pair&lt;int, mysqlx::abi2::r0::Value&gt;, std::allocator&lt;std::pair&lt;int, mysqlx::abi2::r0::Value&gt; &gt; &gt;&amp;&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `void mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::set&lt;true, mysqlx::abi2::r0::SessionOption, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;(mysqlx::abi2::r0::SessionOption, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;&amp;&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/settings.h:68: undefined reference to `mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::do_set(std::__cxx11::list&lt;std::pair&lt;int, mysqlx::abi2::r0::Value&gt;, std::allocator&lt;std::pair&lt;int, mysqlx::abi2::r0::Value&gt; &gt; &gt;&amp;&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `void mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::set&lt;true, mysqlx::abi2::r0::SessionOption, mysqlx::abi2::r0::string const&amp;&gt;(mysqlx::abi2::r0::SessionOption, mysqlx::abi2::r0::string const&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/detail/settings.h:68: undefined reference to `mysqlx::abi2::r0::internal::Settings_detail&lt;mysqlx::abi2::r0::internal::Settings_traits&gt;::do_set(std::__cxx11::list&lt;std::pair&lt;int, mysqlx::abi2::r0::Value&gt;, std::allocator&lt;std::pair&lt;int, mysqlx::abi2::r0::Value&gt; &gt; &gt;&amp;&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `void mysqlx::abi2::r0::internal::Args_processor&lt;mysqlx::abi2::r0::internal::Row_detail, std::pair&lt;mysqlx::abi2::r0::internal::Row_detail::Impl*, unsigned long&gt;*&gt;::process_args1&lt;mysqlx::abi2::r0::Value, , (void*)0&gt;(std::pair&lt;mysqlx::abi2::r0::internal::Row_detail::Impl*, unsigned long&gt;*, mysqlx::abi2::r0::Value)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/common.h:862: undefined reference to `mysqlx::abi2::r0::internal::Row_detail::process_one(std::pair&lt;mysqlx::abi2::r0::internal::Row_detail::Impl*, unsigned long&gt;*, mysqlx::abi2::r0::Value const&amp;)&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o): in function `mysqlx::abi2::r0::internal::Iterator&lt;mysqlx::abi2::r0::internal::Schema_detail::Table_src, mysqlx::abi2::r0::Table, long, mysqlx::abi2::r0::Table*, mysqlx::abi2::r0::Table&amp;&gt;::Iterator(mysqlx::abi2::r0::internal::Schema_detail::Table_src&amp;)&#039;:<br />
/usr/include/mysql-cppconn-8/mysqlx/devapi/common.h:404: undefined reference to `mysqlx::abi2::r0::internal::Query_src::iterator_next()&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTCN6mysqlx4abi22r05ValueE0_NS1_6common5ValueE[_ZTVN6mysqlx4abi22r05ValueE]+0x18): undefined reference to `typeinfo for mysqlx::abi2::r0::common::Value&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTCN6mysqlx4abi22r05ValueE0_NS1_6common5ValueE[_ZTVN6mysqlx4abi22r05ValueE]+0x20): undefined reference to `mysqlx::abi2::r0::common::Value::print(std::ostream&amp;) const&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTIN6mysqlx4abi22r08internal13Schema_detail8Name_srcE[_ZTIN6mysqlx4abi22r08internal13Schema_detail8Name_srcE]+0x10): undefined reference to `typeinfo for mysqlx::abi2::r0::internal::Query_src&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTIN6mysqlx4abi22r08internal17Row_result_detailINS1_7ColumnsEEE[_ZTIN6mysqlx4abi22r08internal17Row_result_detailINS1_7ColumnsEEE]+0x10): undefined reference to `typeinfo for mysqlx::abi2::r0::internal::Result_detail&#039;<br />
/usr/bin/ld: Database/MySQL/libMySQL.a(MySQL.cpp.o):(.data.rel.ro._ZTIN6mysqlx4abi22r05ValueE[_ZTIN6mysqlx4abi22r05ValueE]+0x28): undefined reference to `typeinfo for mysqlx::abi2::r0::common::Value&#039;<br />
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE<br />
collect2: error: ld returned 1 exit status<br />
ninja: build stopped: subcommand failed.<br />
<br />
anybody knows what to do ?]]></description>
            <dc:creator>i wont tell u i wont tell u</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Mon, 21 Nov 2022 15:36:20 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,706608,706608#msg-706608</guid>
            <title>Binding Blob with xdevapi (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,706608,706608#msg-706608</link>
            <description><![CDATA[ I am trying to bind a char * to a blob parameter. The data contains special characters(eg. €). Is there any way of implementation?]]></description>
            <dc:creator>Praveen K. Budakoti</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Thu, 03 Nov 2022 14:41:53 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,706578,706578#msg-706578</guid>
            <title>Configuring incomplete, errors occurred! (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,706578,706578#msg-706578</link>
            <description><![CDATA[ Hi, team!<br />
<br />
<br />
I&#039;m trying to Install Connector/C++ from Source.<br />
<br />
After<br />
<br />
$ git clone <a href="https://github.com/mysql/mysql-connector-cpp.git"  rel="nofollow">https://github.com/mysql/mysql-connector-cpp.git</a><br />
<br />
$ cmake mysql-connector-cpp/<br />
<br />
I&#039;ve got<br />
<br />
-- Configuring incomplete, errors occurred!<br />
<br />
In CMakeFiles/CMakeError.log<br />
<br />
I have:<br />
<br />
CMakeFiles/CMakeTmp/src.cxx:1:1: error: ‘::main’ must return ‘int’<br />
    1 | void main() { return is_same&lt;bool,char&gt;::value; }<br />
<br />
CMakeFiles/CMakeTmp/src.cxx:1:22: error: ‘is_same’ was not declared in this scope<br />
    1 | void main() { return is_same&lt;bool,char&gt;::value; }<br />
<br />
CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/endian.h: No such file or directory<br />
    1 | #include &lt;sys/endian.h&gt;<br />
<br />
CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/byteorder.h: No such file or directory<br />
    1 | #include &lt;sys/byteorder.h&gt;<br />
<br />
<br />
What I&#039;m doing wrong?]]></description>
            <dc:creator>Vitalii Kaplenko</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Wed, 26 Oct 2022 20:46:45 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,706530,706530#msg-706530</guid>
            <title>Reading DATE, DATETIME via mysqlx (MySQL Connector/C++ 8.0 X DevAPI) (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,706530,706530#msg-706530</link>
            <description><![CDATA[ Since this is still not implemented into the C++ Connector we developed the following C++20 helper methods for production use with mysqlx (MySQL Connector/C++ 8.0 X DevAPI) to properly read DATE, DATETIME and TIMESTAMP fields:<br />
<br />
    #pragma once<br />
    <br />
    #include &lt;vector&gt;<br />
    #include &lt;cstddef&gt;<br />
    #include &lt;chrono&gt;<br />
    #include &lt;mysqlx/xdevapi.h&gt;<br />
    <br />
    namespace mysqlx {<br />
    <br />
    static inline std::vector&lt;uint64_t&gt;<br />
    mysqlx_raw_as_u64_vector(const mysqlx::Value&amp; in_value)<br />
    {<br />
      std::vector&lt;uint64_t&gt; out;<br />
    <br />
      const auto bytes = in_value.getRawBytes();<br />
      auto ptr = reinterpret_cast&lt;const std::byte*&gt;(bytes.first);<br />
      auto end = reinterpret_cast&lt;const std::byte*&gt;(bytes.first) + bytes.second;<br />
    <br />
      while (ptr != end) {<br />
        static constexpr std::byte carry_flag{0b1000&#039;0000};<br />
        static constexpr std::byte value_mask{0b0111&#039;1111};<br />
    <br />
        uint64_t v = 0;<br />
        uint64_t shift = 0;<br />
        bool is_carry;<br />
        do {<br />
          auto byte = *ptr;<br />
          is_carry = (byte &amp; carry_flag) == carry_flag;<br />
          v |= std::to_integer&lt;uint64_t&gt;(byte &amp; value_mask) &lt;&lt; shift;<br />
    <br />
          ++ptr;<br />
          shift += 7;<br />
        } while (is_carry &amp;&amp; ptr != end &amp;&amp; shift &lt;= 63);<br />
    <br />
        out.push_back(v);<br />
      }<br />
    <br />
      return out;<br />
    }<br />
    <br />
    static inline std::chrono::year_month_day<br />
    read_date(const mysqlx::Value&amp; value)<br />
    {<br />
      const auto vector = mysqlx_raw_as_u64_vector(value);<br />
      if (vector.size() &lt; 3)<br />
        throw std::out_of_range{&quot;Value is not a valid DATE&quot;};<br />
    <br />
      return std::chrono::year{static_cast&lt;int&gt;(vector.at(0))} / static_cast&lt;int&gt;(vector.at(1)) / static_cast&lt;int&gt;(vector.at(2));<br />
    }<br />
    <br />
    static inline std::chrono::system_clock::time_point<br />
    read_date_time(const mysqlx::Value&amp; value)<br />
    {<br />
      const auto vector = mysqlx_raw_as_u64_vector(value);<br />
      if (vector.size() &lt; 3)<br />
        throw std::out_of_range{&quot;Value is not a valid DATETIME&quot;};<br />
    <br />
      auto ymd = std::chrono::year{static_cast&lt;int&gt;(vector.at(0))} / static_cast&lt;int&gt;(vector.at(1)) / static_cast&lt;int&gt;(vector.at(2));<br />
      auto sys_days = std::chrono::sys_days{ymd};<br />
    <br />
      auto out = std::chrono::system_clock::time_point(sys_days);<br />
    <br />
      auto it = vector.begin() + 2;<br />
      auto end = vector.end();<br />
    <br />
      if (++it == end)<br />
        return out;<br />
      out += std::chrono::hours{*it};<br />
    <br />
      if (++it == end)<br />
        return out;<br />
      out += std::chrono::minutes{*it};<br />
    <br />
      if (++it == end)<br />
        return out;<br />
      out += std::chrono::seconds{*it};<br />
    <br />
      if (++it == end)<br />
        return out;<br />
      out += std::chrono::microseconds{*it};<br />
    <br />
      return out;<br />
    }<br />
    <br />
    } //namespace<br />
<br />
<br />
<br />
Which can then be used as follows:<br />
<br />
<br />
<br />
    auto row = table.select(&quot;datetime&quot;, &quot;date&quot;).execute().fetchOne();<br />
    auto time_point = read_date_time(row[0]);<br />
    auto year_month_day = read_date(row[1]);<br />
<br />
<br />
<br />
rgds Kira]]></description>
            <dc:creator>Kira Backes</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Wed, 19 Oct 2022 13:53:54 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,705504,705504#msg-705504</guid>
            <title>MySQL 8.0.30:  Release Notes (no replies)</title>
            <link>https://forums.mysql.com/read.php?167,705504,705504#msg-705504</link>
            <description><![CDATA[ MySQL 8.0.30:  Release Notes<br />
- <a href="https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/mysql-shell/8.0/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/mysql-shell/8.0/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/mysql-router/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/mysql-router/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/mysql-operator/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/mysql-operator/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/workbench/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/workbench/en/news-8-0-30.html</a><br />
<br />
MySQL 8.0.30:  Connectors Release Notes<br />
- <a href="https://dev.mysql.com/doc/relnotes/connector-odbc/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-odbc/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/connector-j/8.0/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-j/8.0/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/connector-python/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-python/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/connector-net/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-net/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/connector-nodejs/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-nodejs/en/news-8-0-30.html</a><br />
- <a href="https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-30.html</a><br />
<br />
MySQL NDB Cluster 8.0.30:  Release Notes<br />
- <a href="https://dev.mysql.com/doc/relnotes/mysql-cluster/8.0/en/news-8-0-30.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/mysql-cluster/8.0/en/news-8-0-30.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Tue, 26 Jul 2022 23:10:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,705369,705369#msg-705369</guid>
            <title>C++ OO programming usage (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,705369,705369#msg-705369</link>
            <description><![CDATA[ I&#039;m just getting started in programming with MySQL 8/Connector C++. Everything is built and linked and working but I have a question about how to make use of this in a true C++ Object Oriented program.<br />
<br />
All of the classes require full configuration on instantiation. That means, for example, that I could NOT do this in my own class definition:<br />
<br />
class myClass {<br />
  public:<br />
    mysqlx::Session mySession;<br />
    mysqlx::Table myTable;<br />
<br />
    etc...<br />
};<br />
<br />
where I would instantiate an object of myClass and the configure myClass.mySession, myClass.myTable, and so on.<br />
<br />
That seems to say that not only can I not make use of object oriented programming but I also can&#039;t make use of functions, because every function that I want to use to access the database I will have to locally instantiate Session and Table objects, so I end up duplicating a lot of code.<br />
<br />
What am I missing?]]></description>
            <dc:creator>David Hale</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Mon, 25 Jul 2022 11:06:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,705225,705225#msg-705225</guid>
            <title>CDK Error: no such file or directory (generic:2) (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,705225,705225#msg-705225</link>
            <description><![CDATA[ Hi guys:<br />
<br />
  There is a longblob type field in my table. When I use the table:: insert() interface to insert, the code will exception and get a prompt: CDK error: no such file or directory (generic:2).<br />
<br />
  After many tests, I found that as long as the amount of inserted data is reduced to less than 60m, the insertion can succeed, otherwise exceptions will occur.<br />
<br />
  Does this mean that my code is correct, but there is an error in the MySQL configuration item.<br />
<br />
  I have set &quot;max_allowed_packet&quot; to 2G, but the exception still exists.<br />
<br />
  Guys, do you have any suggestions for this.]]></description>
            <dc:creator>Allen Allen</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Mon, 25 Jul 2022 10:47:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,705088,705088#msg-705088</guid>
            <title>Mysql C++ connector: (process 26464) exited with code -1073740791. (1 reply)</title>
            <link>https://forums.mysql.com/read.php?167,705088,705088#msg-705088</link>
            <description><![CDATA[ Set project to release x64<br />
<br />
C/C++-&gt;General-&gt;Additional Include Directories:<br />
C:\Program Files\MySQL\Connector C++ 8.0\include<br />
<br />
Linker-&gt;General-&gt;Additional Library Directories:<br />
C:\Program Files\MySQL\Connector C++ 8.0\lib64\vs14<br />
<br />
<br />
<br />
#include &lt;iostream&gt;<br />
<br />
#include &lt;mysqlx/xdevapi.h&gt;<br />
<br />
int main()<br />
{<br />
    mysqlx::Session sess(&quot;localhost&quot;, 3306, &quot;root&quot;, &quot;password&quot;);<br />
    mysqlx::Schema db = sess.getSchema(&quot;schema_name&quot;);<br />
    std::getchar();<br />
}<br />
<br />
<br />
when running my program, I get the error:<br />
<br />
C:\Users\Conor\source\repos\mysql_test\x64\Release\mysql_test.exe (process 26464) exited with code -1073740791.<br />
Press any key to close this window . . .]]></description>
            <dc:creator>Conor Culhane</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Mon, 04 Jul 2022 09:50:16 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?167,705084,705084#msg-705084</guid>
            <title>Help setting up mysql C++ connector in visual studio and ubuntu (2 replies)</title>
            <link>https://forums.mysql.com/read.php?167,705084,705084#msg-705084</link>
            <description><![CDATA[ Hi I&#039;m willing to pay $200 for help setting up the mysql C++ connector for xdevapi in visual studio and ubuntu. Please let me know if you can help.<br />
my discord is: conor#8014<br />
<br />
thanks!]]></description>
            <dc:creator>Conor Culhane</dc:creator>
            <category>Connector/C++</category>
            <pubDate>Thu, 30 Jun 2022 18:20:00 +0000</pubDate>
        </item>
    </channel>
</rss>
