[zeromq-dev] Problem porting to Windows

Alan Ward alan.ward at btinternet.com
Wed Mar 13 12:27:57 CET 2013


I have a small client-server system I have developed on Ubuntu. It works
fine there.

I am trying to port the server to Windows using minGW.

I have got everything to compile OK using gcc, but am having problems with
producing the final .exe


I know it is something I am doing wrong, but I can't figure out what. It
would be great if someone could point me in the right direction.


My gcc command looks like this:


gcc QV_EM_message_broker.c -I "C:\Program Files\ZeroMQ 3.2.2\include"
..\lib\QV_EM_DB_interface.o -L "C:\Program Files\PostgreSQL\9.2\lib"
..\lib\QV_EM_lib.o -L "C:\Program Files\ZeroMQ 3.2.2\lib"
-oQV_EM_message_broker.exe -lzmq


And gives the error: ... cannot find -lzmq.


If I remove the -lzmq then I get: .. undefined reference to
`_imp__zmq_ctx_new' - and the other zmq calls from my code.


I am sure I should be using something different from -lzmq, but I can't
figure out what.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130313/7b3624c8/attachment.htm>

More information about the zeromq-dev mailing list