nim-lang / nim-zmq

Nim ZMQ wrapper
https://nim-lang.github.io/nim-zmq/zmq.html
MIT License
65 stars 17 forks source link

cross compilation to windows gets wrong TMsg size #13

Open AvdN opened 5 years ago

AvdN commented 5 years ago

The current installer for windows is for zmq 4.0.4 which has 32 byte TMsg size. When cross compiling (-d:mingw) the size of TMsg is determined compile time based on the locally installed zmq (on Linux, 4.2.0) which is 64 byte.

It should be possible to set the target zmq version number and/or set the TMsg size explicitly

This could be done from the commandline (-d..) or if possible from the importing .nim module (when compiled with -d:mingw)