[CONC-269] Building on Windows with mingw-w64 Created: 2017-07-11 Updated: 2017-07-11 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 2.3.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Jeroen Ooms | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
mingw-w64 on windows |
||
| Description |
|
There are several places where connector-c is redefining or implementing things on Windows which are already available when compiling with mingw-w64 (the windows gcc port). It would be good to distinguish between different compilers on Windows. Downstream patches are here: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-libmariadbclient For example libmariadb/my_pthread.c is implementing pthreads which have been natively supported in mingw-w64 which leads to linking errors. An easy fix is to #ifdef _MSC_VER instead of #ifdef _WIN32. |