Skip to content
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

Version 4.7.1 compiled fail on windows #476

Closed
jiazhanfeng1989 opened this issue Feb 9, 2021 · 3 comments
Closed

Version 4.7.1 compiled fail on windows #476

jiazhanfeng1989 opened this issue Feb 9, 2021 · 3 comments

Comments

@jiazhanfeng1989
Copy link

We used zeromq 4.3.2 and cppzmq 4.6.0 on windows and they work fine,
But after upgrading to zeromq v4.3.4, the compilation failed.

win64-vs14-dbg\include\zeromq/zmq.hpp(2588): error C3646: 'fd': unknown override specifier

Issue description

we used zeromq 4.3.2 and cppzmq 4.6.0 on windows and they workd fine,
But after upgrading to zeromq v4.3.4, the compilation failed.

win64-vs14-dbg\include\zeromq/zmq.hpp(2588): error C3646: 'fd': unknown override specifier

Environment

  • OS: windows VS2015

old: woks fine
zeromq 4.3.2
cppzmq 4.6.0

new: compile fail
cppzmq v4.7.1
zeromq 4.3.4

What's the expected result?

Compile OK.

@gummif
Copy link
Member

gummif commented Feb 9, 2021

Try including winsock2.h before zmq.hpp. This should get fixed when #452 is merged.

@jiazhanfeng1989
Copy link
Author

My project does not need to add additional Winsock2.h before upgrading. It seems that zeromq v4.3.4 has changed its internal header dependency. I also failed to compile using cppzmq v4.6.0 & zeromq v4.3.4.

But cppzmq v4.6.0 & zeromq 4.3.2 compiled ok.

@gummif
Copy link
Member

gummif commented Feb 10, 2021

This was a change in libzmq (zeromq/libzmq@cb211e4) that no longer includes winsock2.h, and cppzmq was and is still using SOCKET (in DRAFT mode only).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants