-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] MinGW Support #1707
Comments
Are you using cmake ? |
yes.
|
I'm a bit snowed under with other things, so sorry for not responding earlier. Yes, fixes for mingw32 would be appreciated. |
tested with:
steps to reproduce:
build error 1:
proposed fix 1: the mingw toolchain comes with a pthreads library:
build warnings/errors 2:
proposed fix 2: above functions/macro/struct are guarded in the respective mingw header files with
aka
|
Just wanted to note that @mabuze 's proposed fixes worked for me with gcc 10.2.0 and cmake 3.15.2, and regular MinGW, thank you ❤️ EDIT: Windows 10 Pro, version 2004, OS build 19041.508 |
since mosquitto (as of 1.6.10) does not build out-of-the-box with the mingw toolchain (currently using
i686-w64-mingw32-gcc (GCC) 9.2.1 20190827 (Fedora MinGW 9.2.1-6.fc32)) i'm working on fixing
these issues.
is there any interest in upstream for this?
The text was updated successfully, but these errors were encountered: