gpt4 book ai didi

c# - Xamarin Studios/C# 应用程序中的 clrzmq 找不到 libzmq

转载 作者:行者123 更新时间:2023-11-30 17:00:27 28 4
gpt4 key购买 nike

我在 Mac 上使用 Xamarin Studio,通过 NuGet 包含 clrzmq

clrzmq 对 libzmq.dll 的引用。我的应用程序编译正常,但当我尝试运行它时,我得到了这个:

Unhandled Exception:
System.DllNotFoundException: libzmq
at (wrapper managed-to-native) ZMQ.C:zmq_init (int)
at ZMQ.Context..ctor (Int32 io_threads) [0x00000] in <filename unknown>:0
at FeatureSpike.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0

libzmq.dll 肯定存在于构建目标目录中。有谁知道为什么找不到它?

最佳答案

您可能想尝试使用 netmq ( https://github.com/zeromq/netmq ),它是 zeromq 的 100% C# 端口,可能比调用 pinvoke 更容易使用。

关于c# - Xamarin Studios/C# 应用程序中的 clrzmq 找不到 libzmq,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22209398/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com