[zeromq-dev] Static link

XavierMillieret at Eaton.com XavierMillieret at Eaton.com
Thu Jun 14 18:23:05 CEST 2012


Hi all,

 

I would like to do a dll for windows 32 (for my project), and doing a static link with libzmq.lib.

I compile the solution zeromq-3.2.0 with:

 

Configuration type: Static library (.lib) -> libzmq.lib (19 574 628 octets)

 

In my project, I compile my code and tries to insert it, but I have the following error:

error LNK2019: unresolved external symbol __imp__zmq_strerror referenced in function "public: void __thiscall XXXXXXX

 

I try to following this link:

http://www.mail-archive.com/zeromq-dev@lists.zeromq.org/msg03925.html

 

 

But nothing to do !

 

I try this, directly in the zmq.h:

__declspec(dllexport) int zmq_bind (void *s, const char *addr);

 

And in my project 

__declspec(dllimport) int zmq_bind (void *s, const char *addr);

 

But I have the same error. 

 

Please could you help me to solve this problem ?

 

Thank you very much

 

Best regards

 

Xavier Millieret

Software Engineer

Engineering Software & Connectivity

Eaton's Electrical Group PQCO/DPQD

Immeuble Viseo - Bâtiment A

110, rue Blaise Pascal

38330 Montbonnot St Martin 

FRANCE

tel: +33 (0) 4 76 00 66 02

xaviermillieret at eaton.com <mailto:xaviermillieret at eaton.com> 

www.eaton.com <http://www.eaton.com/> 

 


--------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120614/05e880c5/attachment.htm>


More information about the zeromq-dev mailing list