I tried cross-compiling as the issues suggests. Therefore I used mingw from apt-sources and MXE from current git stable.
Running the following for libzmq master works fine: ----- CPPFLAGS=-DFD_SETSIZE=1024 ./configure --host=x86_64-w64-mingw32 --prefix=/home/sappo/workspace/zeromq/cross_64 ----- If I proceed to czmq master ----- PKG_CONFIG_PATH=~/workspace/zeromq/cross_64/lib/pkgconfig ./configure --host=x86_64-w64-mingw32 --prefix=~/workspace/zeromq/cross_64 ----- I'll get the following wired errors ----- $ make make[1]: Entering directory `/mnt/DataStorage/workspace/zeromq/czmq' CC src/src_libczmq_la-zactor.lo src/zactor.c:100:1: error: 'zactor_new' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] zactor_new (zactor_fn *actor, void *args) ^ src/zactor.c:152:1: error: 'zactor_destroy' redeclared without dllimport attribute after being referenced with dll linkage [-Werror] zactor_destroy (zactor_t **self_p) ^ src/zactor.c:179:1: error: 'zactor_send' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] zactor_send (zactor_t *self, zmsg_t **msg_p) ^ src/zactor.c:191:1: error: 'zactor_recv' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] zactor_recv (zactor_t *self) ^ src/zactor.c:201:1: error: 'zactor_is' redeclared without dllimport attribute after being referenced with dll linkage [-Werror] zactor_is (void *self) ^ src/zactor.c:214:1: error: 'zactor_resolve' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] zactor_resolve (void *self) ^ src/zactor.c:229:1: error: 'zactor_sock' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] zactor_sock (zactor_t *self) ^ src/zactor.c:276:1: error: 'zactor_test' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] zactor_test (bool verbose) ^ cc1: all warnings being treated as errors make[1]: *** [src/src_libczmq_la-zactor.lo] Error 1 ----- What's the catch here? The dllimports should be okay, I checked them multiple times. //Kevin 2014-11-19 14:50 GMT+01:00 KIU Shueng Chuan <[email protected]>: > There's an old thread about cross compiling with mingw32 here: > https://github.com/zeromq/czmq/issues/104 > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
