linking to a static 0MQ library in VS

后端 未结 3 1471
情话喂你
情话喂你 2021-02-02 01:07

This may be a Visual Studio question more than anything else...
I\'m trying to build a 0MQ C++ example using VS10 and ZeroMQ 2.2.0.
I downloaded the windows sources and

3条回答
  •  后悔当初
    2021-02-02 01:09

    You should add ZMQ_STATIC to C/C++\Preprocessor\Preprocessor Definitions in your "empty console project" too. Otherwise, when you compile your application, ZMQ_EXPORT in zmq.h is defined as __declspec(dllimport), and as a result, MSVC looks for __imp__zmq_* symbols instead of zmq_*

提交回复
热议问题