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

Could not compile VS2017/Win10 #18

Open
sgluss opened this issue Nov 23, 2017 · 4 comments
Open

Could not compile VS2017/Win10 #18

sgluss opened this issue Nov 23, 2017 · 4 comments

Comments

@sgluss
Copy link

sgluss commented Nov 23, 2017

I get these errors trying to build ZWSSOCK in X64/Release config:

Severity Code Description Project File Line Suppression State
Error LNK1120 9 unresolved externals CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\x64\Release\CZMQ-ZWSSock.exe 1
Error LNK2001 unresolved external symbol __imp_zmq_poll CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zmq_send CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zmq_version CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\main.obj 1
Error LNK2001 unresolved external symbol __imp_zsocket_bind CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zsocket_connect CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zsocket_new CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zsocket_sendmem CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zsocket_unbind CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1
Error LNK2001 unresolved external symbol __imp_zthread_fork CZMQ-ZWSSock C:\Users\sam\RubymineProjects\untitled\ZWSSock\src\CZMQ-ZWSSock\zwssock.obj 1

My linker configuration:
C:\czmq\libzmq\bin\x64\Release\v141\static\libzmq.lib
C:\czmq\czmq\bin\x64\Release\v141\dynamic\libczmq.lib
C:\czmq\zlib-1.2.11\contrib\vstudio\vc14\x64\ZlibStatRelease\zlibstat.lib
%(AdditionalDependencies)

@sgluss
Copy link
Author

sgluss commented Nov 23, 2017

I've tried all kinds of build configurations, nothing has gotten me closer than this.

@bluca
Copy link
Member

bluca commented Nov 23, 2017

Make sure you are using CZMQ not newer than 3.x - IE at most https://github.com/zeromq/czmq/releases/tag/v3.0.2

This project uses old 3.x APIs of CZMQ, which were deprecated and removed starting with version 4.0, and that's why you are seeing those build errors I assume.

@sgluss
Copy link
Author

sgluss commented Nov 23, 2017

I was able to build with latest CZMQ/LibZMQ on ubuntu 16.04, I made these changes to fix the compatibility issues:

#19

@sgluss
Copy link
Author

sgluss commented Nov 23, 2017

It seems to me to be a linker/include path issue, it is not clear how to resolve the dependencies in Visual Studio though

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