There was the same problem a while ago. Here is what I did to solve this problem:
Download the correct version of ZMQ
The "Download Link" provided on the ZMQ website seems outdated. To really get the current version, you will need to use Git:
git clone https:
Build with Visual Studio 2015
The repository includes a preliminary Visual Studio project. You can find it in ...\libzmq\builds\msvc . To create cd in vs2015 for Visual Studio 2015 and open libzmq.sln .
You can choose whether you want to compile static or dynamic libraries: DynRelease or StaticRelease for Win32 or x64.
After that, run Build > Build solution to compile everything.
Installation project for using compiled libraries
After creating the project, go to the project properties:
C++ > General > Additional Include Directories should indicate the path to enable the repository. If you want to use the C ++ style, some additional files must be placed in this directory. Alternatively, you can take a look at https://github.com/zeromq/zmqpp .
Linker > General > Additional Library Directories should point to the built-in libraries. They should be located in ...\libzmq\bin\x64\Release\v140\dynamic\ .
Linker > Input > Additional Dependencies should contain the name of the library you want to use. The default value should be libzmq.lib , otherwise you will find the name in the bin .
The program depends on the libzmq.dll file that you just created. This file must be placed in the project creation directory. To do this, you can add the following command in Build Events > Post-Build Event > Command Line :
copy /Y "...\libzmq\bin\x64\Release\v140\dynamic\libzmq.dll" "$(OutDir)"
This will copy the .dll file to the destination directory with each build if it is missing.
Hope this helps =)
source share