[zeromq-dev] Mono: DllNotFoundException
sustrik at fastmq.com
Sun Apr 26 17:39:06 CEST 2009
> I'm trying to use ZeroMQ with Mono. I've compiled trunk version 1392.
> I'm running Ubuntu and MonoDevelop out-of-the-box (VMWare).
> I'm getting error:
> Unhandled Exception: System.DllNotFoundException: libczmq
> at (wrapper managed-to-native) Zmq:zmq_create (string)
> at Zmq.Open (System.String host) [0x00000]
> at rd.MainClass.Main (System.String args) [0x00017] in Main.cs:39
> Which is
> Zmq zmq = new Zmq();
> zmq.Open("192.168.0.1"); // This!
> I don't have libczmq.dll anywhere but it's compiled to .so file. I
> also tried throwing it from Windows package version to my project but
> without luck. CLR version is compiled into DLL file successfully
> What I'm missing?
./configure --with-c --with-clr
CLR library is a wrapper over C library, so you have to build both C and
CLR to make it work.
Actually, I would expect the build system to fail when you try to build
CLR without C. We'll make sure that works properly this week.
> Documentation of CLR side is a bit empty.
More information about the zeromq-dev