MySQL Forums
Forum List  »  Connector/C++

Re: The driver crash when calling driver->connect
Posted by: Laurent Duroisin
Date: May 15, 2021 01:44PM

I tried to compile the cpp connector with mingw but I got a compilation error :

In file included from C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/error.h:44,
from C:\Users\Laurent\Downloads\mysql-connector-c++-8.0.25-src\mysql-connector-c++-8.0.25-src\cdk\foundation\error.cc:36:
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:41:37: error: 'EAFNOSUPPORT' was not declared in this scope; did you mean 'WSAEAFNOSUPPORT'?
41 | X (address_family_not_supported, EAFNOSUPPORT) \
| ^~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:42:37: error: 'EADDRINUSE' was not declared in this scope; did you mean 'WSAEADDRINUSE'?
42 | X (address_in_use, EADDRINUSE) \
| ^~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:43:37: error: 'EADDRNOTAVAIL' was not declared in this scope; did you mean 'WSAEADDRNOTAVAIL'?
43 | X (address_not_available, EADDRNOTAVAIL) \
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:44:37: error: 'EISCONN' was not declared in this scope; did you mean 'HICON'?
44 | X (already_connected, EISCONN) \
| ^~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:49:37: error: 'EBADMSG' was not declared in this scope; did you mean 'EBADF'?
49 | X (bad_message, EBADMSG) \
| ^~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:51:37: error: 'ECONNABORTED' was not declared in this scope; did you mean 'WSAECONNABORTED'?
51 | X (connection_aborted, ECONNABORTED) \
| ^~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:52:38: error: 'EALREADY' was not declared in this scope; did you mean 'WSAEALREADY'?
52 | X (connection_already_in_progress, EALREADY) \
| ^~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:53:37: error: 'ECONNREFUSED' was not declared in this scope; did you mean 'WSAECONNREFUSED'?
53 | X (connection_refused, ECONNREFUSED) \
| ^~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:54:37: error: 'ECONNRESET' was not declared in this scope; did you mean 'WSAECONNRESET'?
54 | X (connection_reset, ECONNRESET) \
| ^~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:56:37: error: 'EDESTADDRREQ' was not declared in this scope; did you mean 'WSAEDESTADDRREQ'?
56 | X (destination_address_required, EDESTADDRREQ) \
| ^~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:64:37: error: 'EHOSTUNREACH' was not declared in this scope; did you mean 'WSAEHOSTUNREACH'?
64 | X (host_unreachable, EHOSTUNREACH) \
| ^~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:65:37: error: 'EIDRM' was not declared in this scope
65 | X (identifier_removed, EIDRM) \
| ^~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:73:37: error: 'EMSGSIZE' was not declared in this scope; did you mean 'WSAEMSGSIZE'?
73 | X (message_size, EMSGSIZE) \
| ^~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:74:37: error: 'ENETDOWN' was not declared in this scope; did you mean 'WSAENETDOWN'?
74 | X (network_down, ENETDOWN) \
| ^~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:75:37: error: 'ENETRESET' was not declared in this scope; did you mean 'WSAENETRESET'?
75 | X (network_reset, ENETRESET) \
| ^~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:76:37: error: 'ENETUNREACH' was not declared in this scope; did you mean 'WSAENETUNREACH'?
76 | X (network_unreachable, ENETUNREACH) \
| ^~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:77:37: error: 'ENOBUFS' was not declared in this scope; did you mean 'EROFS'?
77 | X (no_buffer_space, ENOBUFS) \
| ^~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:79:37: error: 'ENOLINK' was not declared in this scope; did you mean 'EMLINK'?
79 | X (no_link, ENOLINK) \
| ^~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:82:37: error: 'ENOMSG' was not declared in this scope; did you mean 'ENOMEM'?
82 | X (no_message, ENOMSG) \
| ^~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:83:37: error: 'ENOPROTOOPT' was not declared in this scope; did you mean 'WSAENOPROTOOPT'?
83 | X (no_protocol_option, ENOPROTOOPT) \
| ^~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:91:37: error: 'ENOTSOCK' was not declared in this scope; did you mean 'WSAENOTSOCK'?
91 | X (not_a_socket, ENOTSOCK) \
| ^~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:93:37: error: 'ENOTCONN' was not declared in this scope; did you mean 'WSAENOTCONN'?
93 | X (not_connected, ENOTCONN) \
| ^~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:96:37: error: 'ECANCELED' was not declared in this scope; did you mean 'WSAECANCELLED'?
96 | X (operation_canceled, ECANCELED) \
| ^~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:97:37: error: 'EINPROGRESS' was not declared in this scope; did you mean 'WSAEINPROGRESS'?
97 | X (operation_in_progress, EINPROGRESS) \
| ^~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:99:37: error: 'EOPNOTSUPP' was not declared in this scope; did you mean 'WSAEOPNOTSUPP'?
99 | X (operation_not_supported, EOPNOTSUPP) \
| ^~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:103:37: error: 'EPROTO' was not declared in this scope
103 | X (protocol_error, EPROTO) \
| ^~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:104:37: error: 'EPROTONOSUPPORT' was not declared in this scope; did you mean 'WSAEPROTONOSUPPORT'?
104 | X (protocol_not_supported, EPROTONOSUPPORT) \
| ^~~~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:111:37: error: 'ETXTBSY' was not declared in this scope
111 | X (text_file_busy, ETXTBSY) \
| ^~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:116:37: error: 'ELOOP' was not declared in this scope; did you mean 'CE_OOP'?
116 | X (too_many_symbolic_link_levels, ELOOP) \
| ^~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:117:37: error: 'EOVERFLOW' was not declared in this scope
117 | X (value_too_large, EOVERFLOW) \
| ^~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:118:37: error: 'EPROTOTYPE' was not declared in this scope; did you mean 'WSAEPROTOTYPE'?
118 | X (wrong_protocol_type, EPROTOTYPE) \
| ^~~~~~~~~~
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:124:33: note: in definition of macro 'STD_COND_ENUM'
124 | #define STD_COND_ENUM(A,B) A = B,
| ^
C:/Users/Laurent/Downloads/mysql-connector-c++-8.0.25-src/mysql-connector-c++-8.0.25-src/cdk/include/mysql/cdk/foundation/std_error_conditions.h:130:5: note: in expansion of macro 'STD_COND_LIST'
130 | STD_COND_LIST(STD_COND_ENUM)
| ^~~~~~~~~~~~~
cdk\foundation\CMakeFiles\cdk_foundation.dir\build.make:62: recipe for target 'cdk/foundation/CMakeFiles/cdk_foundation.dir/error.cc.obj' failed
mingw32-make[2]: *** [cdk/foundation/CMakeFiles/cdk_foundation.dir/error.cc.obj] Error 1
CMakeFiles\Makefile2:1063: recipe for target 'cdk/foundation/CMakeFiles/cdk_foundation.dir/all' failed
mingw32-make[1]: *** [cdk/foundation/CMakeFiles/cdk_foundation.dir/all] Error 2
Makefile:128: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

sql::variant are not the same with vs and mingw so I think it's the cause of the crash.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: The driver crash when calling driver->connect
411
May 15, 2021 01:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.