I am trying to build nanomsg on mingw, cross compiling from ubuntu using mxe. The target host is x86_64. I built it fine but it won't link. I am getting issues like
undefined reference to 'imp__nn_freemsg'
I think it's a static lib issue. I built again using
./configure --enable-static --disable-shared ...
Same issue. Are there any linker flags I need to put in the gcc build line after I link in libnanomsg.a?