简体   繁体   English

Mono 2.8上的SWIG中的System.EntryPointNotFoundException错误

[英]System.EntryPointNotFoundException error in SWIG on mono 2.8

I asked about an error for running Swig examples on mono 2.8 here . 我问及在Mono 2.8运行痛饮例子错误这里

Adding "-arch i386" solved the issue with simple example, but when I tried to run the other examples, I got the following error, for example, with Examples/csharp/variables : 添加“ -arch i386”可以通过简单的示例解决该问题,但是当我尝试运行其他示例时,例如,使用Examples / csharp / variables时出现以下错误:

Unhandled Exception: System.EntryPointNotFoundException: CSharp_ivar_set
  at (wrapper managed-to-native) examplePINVOKE:ivar_set (int)
  at example.set_ivar (Int32 value) [0x00000] in :0 
  at runme.Main () [0x00000] in :0

There seems to be no problem in reading ivar_set. 读取ivar_set似乎没有问题。

Mono: Searching for 'CSharp_ivar_set'.
Mono: Probing 'CSharp_ivar_set'.
Mono: Probing 'CSharp_ivar_set'.
Mono: Probing 'CSharp_ivar_setA'.
Mono: Probing 'CSharp_ivar_setA'.

examplePINVOKE.cs has the [DllImport("example", EntryPoint="CSharp_ivar_set")] at line 191. examplePINVOKE.cs在第191行有[DllImport(“ example”,EntryPoint =“ CSharp_ivar_set”)]。

What might be wrong? 可能是什么问题?

Setting up 配置

export DYLD_FALLBACK_LIBRARY_PATH=

solves this issue. 解决了这个问题。

I got this hint from mhutch . 我从麦克赫特那里得到了这个提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Linux中,单声道调用我的.so lib返回System.EntryPointNotFoundException - in linux, mono invoke my .so lib return System.EntryPointNotFoundException System.EntryPointNotFoundException以平行红色显示在输出中 - System.EntryPointNotFoundException in Parallel red in output System.EntryPointNotFoundException:无法找到入口点 - System.EntryPointNotFoundException: Unable to find an entry point 未处理的异常:DLL中的System.EntryPointNotFoundException - Unhandled Exception: System.EntryPointNotFoundException in DLL 使用aff文件时System.EntryPointNotFoundException - System.EntryPointNotFoundException when using aff file System.EntryPointNotFoundException和DllImport(“ kernel32.dll”) - System.EntryPointNotFoundException and DllImport(“kernel32.dll”) 从 DLL 调用 function 时出现 System.EntryPointNotFoundException - System.EntryPointNotFoundException when calling function from DLL Owin / Katana System.EntryPointNotFoundException程序集位于其他位置 - Owin/Katana System.EntryPointNotFoundException Assembly located elsewhere 无法使用Magick.NET:System.EntryPointNotFoundException - Can't use Magick.NET: System.EntryPointNotFoundException Excel Interop:使用Task.Run创建实例会导致异常System.EntryPointNotFoundException - Excel Interop: Creating instance with Task.Run results in exception System.EntryPointNotFoundException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM