mysql-connector-c++-8.0.17-src with mingw on Windows
Hello,
after successfully going through the cmake (cmake-3.12.3) configure step with
cmake.exe ..\mysql-connector-c++-8.0.17-src -G "MinGW Makefiles" -DBUILD_STATIC=ON
I got stuck at
cmake.exe --build . --config Debug
which gives me:
[ 2%] Built target save_linker_opts
[ 3%] Building CXX object uuid/src/CMakeFiles/uuid_gen.dir/uuid_gen.cc.obj
D:\Daten\LiDoSourcen\mysql-connector-c++-8.0.17-src\cdk\extra\uuid\src\uuid_gen.cc:46:26: error: conflicting declaration 'typedef CRITICAL_SECTION pthread_mutex_t'
46 | typedef CRITICAL_SECTION pthread_mutex_t;
| ^~~~~~~~~~~~~~~
In file included from D:/Daten/Portable/MinGw-msys64/mingw64/include/c++/9.2.0/x86_64-w64-mingw32/bits/gthr-default.h:35,
from D:/Daten/Portable/MinGw-msys64/mingw64/include/c++/9.2.0/x86_64-w64-mingw32/bits/gthr.h:148,
from D:/Daten/Portable/MinGw-msys64/mingw64/include/c++/9.2.0/ext/atomicity.h:35,
from D:/Daten/Portable/MinGw-msys64/mingw64/include/c++/9.2.0/bits/basic_string.h:39,
from D:/Daten/Portable/MinGw-msys64/mingw64/include/c++/9.2.0/string:55,
from D:/Daten/Portable/MinGw-msys64/mingw64/include/c++/9.2.0/stdexcept:39,
from D:\Daten\LiDoSourcen\mysql-connector-c++-8.0.17-src\cdk\extra\uuid\src\uuid_gen.cc:40:
D:/Daten/Portable/MinGw-msys64/mingw64/x86_64-w64-mingw32/include/pthread.h:271:18: note: previous declaration as 'typedef intptr_t pthread_mutex_t'
271 | typedef intptr_t pthread_mutex_t;
| ^~~~~~~~~~~~~~~
as a result.
I updated the MinGW environmet yesterday. So I should have the most recent version of the compiler.
I looked at both locations, but could not spot any obvious #define or something I could use to get a proper compilation.
Any hints - or questions?
regards
Gerhard
Subject
Views
Written By
Posted
mysql-connector-c++-8.0.17-src with mingw on Windows
2575
September 27, 2019 05:34AM
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.