-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error when compiling with MinGW due to usage of MS-specific __except keyword #3586
Comments
Interesting that the mingw build test did not catch this: https://ci.appveyor.com/project/zeromq/libzmq/builds/26024001/job/cp8r6o28y931toy2 Could you please send a PR to fix it? |
@bluca Sorry, it's obvious why it doesn't compile but I am not a ZeroMQ contributor and not entirely sure why Fortunately it worked fine with the previous version I can give the fix fix a try if no other person shows up Perhaps the original author @moretromain could give this a shot? I'll be happy to test. |
Not sure if this is related. But I get this error when on "latest_release" branch. So when switching to master and compiling with mingw I get the error below because it does not like storing a function pointer into a (void*)
|
Could you please send a PR to fix it? |
I suspect this change has caused a crash under OpenCppCoverage with Visual Studio builds starting in ZeroMQ 4.3.3: |
Please use this template for reporting suspected bugs or requests for help.
Issue description
Trying to compile libzmq with MinGW - the issue is fairly obvious.
__except
should not have gone through a code review as it's a Microsoft specific extension.https://github.com/zeromq/libzmq/blame/aac3cd4d93d288b29b71806c2478a947d66238b6/src/thread.cpp#L136
Environment
Minimal test code / Steps to reproduce the issue
Can provide a
Dockerfile
upon request.The text was updated successfully, but these errors were encountered: