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

Mingw compilation on Windows #158

Open
mbr4 opened this issue Nov 4, 2016 · 3 comments
Open

Mingw compilation on Windows #158

mbr4 opened this issue Nov 4, 2016 · 3 comments

Comments

@mbr4
Copy link

mbr4 commented Nov 4, 2016

Under windows when compiling using Mingw there is a linking error:

\zeromq-4.1.6\builds\mingw32/../../src/session_base.cpp:520: undefined reference to `zmq::socks_connecter_t::socks_connecter_t(zmq::io_thread_t*, zmq::session_base_t*, zmq::options_t const&, zmq::address_t*, zmq::address_t*, bool)'
collect2.exe: error: ld returned 1 exit status
Makefile.mingw32:40: recipe for target 'libzmq.dll' failed
mingw32-make: *** [libzmq.dll] Error 1

This error is caoused by missing of 2 source files compilation in makefile. It can be fixed by adding two files:
socks_connecter.o socks.o
to Makefile.mingw32 to OBJS section.

@bluca
Copy link
Member

bluca commented Nov 4, 2016

Does it work on libzmq master?

@mbr4
Copy link
Author

mbr4 commented Nov 4, 2016

I just checked libzmq master and there is similar problem - missing files in makefile but files are different than in this issue, so I created another issue for the libzmq master (zeromq/libzmq#2194)

@bluca
Copy link
Member

bluca commented Nov 4, 2016

Thanks for checking. If you have a working fix, could you please send a PR? I don't have a Windows machine to test it myself, although someone else might.

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