[zeromq-dev] Compiling zmq inside program
malist imap
mailing.list at manageapp.com
Wed Jan 11 05:14:31 CET 2012
Hello.
Please excuse my ignorance about basic compiling skills. I use C and C++ maybe 2 days a year.
I tried to compile zqm as a static library but it is just too much work with every version. I was able to do it with older VisualStudio, but with VS2010 and zmq 3.1.1 I just can't get it to work any more. Then I tried to compile zmq sources inside my test app and it seems promising.
In VS2010 first zmq compilation takes a bit longer (maybe 5-10 mins), but in Mac full zmq compile takes only 5 seconds. And now I can finally debug zmq code.
I have 4 questions:
a) In OSX 10.7 Xcode 4.2 it seems that Xcode (or Boost) defines somewhere a macro called "check". Method "check" is defined also in msg.hpp and trie.hpp and I couldn't compile my app. I had to put inside platform.hpp:
#ifdef check
#undef check
#endif
It this the right way to deal with the problem?
b) It seems that I have to make copies of same sources in both OSX and Windows and compile sources at least once to get correct platform.hpp. I would like to use exact same sources, but is it possible? Do I need something else than platform.hpp?
c) To be able to compile in windows I need to change manually zmq.h and zmq_utils.h
from:
# if defined DLL_EXPORT
# define ZMQ_EXPORT __declspec(dllexport)
# else
# define ZMQ_EXPORT __declspec(dllimport)
# endif
to:
# if defined DLL_EXPORT
# define ZMQ_EXPORT
# else
# define ZMQ_EXPORT
# endif
I would like to have one more define (NO_ZMQ_EXPORT?), is it too much trouble to change this?
d) https://github.com/zeromq/libzmq says the last change is December 19, 2011. Are there any newer versions somewhere?
--
Regards,
Pasi Mankinen
Finland
More information about the zeromq-dev
mailing list