本文介绍了Mono 2.8上的SWIG中的System.EntryPointNotFoundException错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我询问了在mono 2.8上运行Swig示例的错误.

I asked about an error for running Swig examples on mono 2.8 here.

添加"-arch i386"可以通过简单的示例解决该问题,但是当我尝试运行其他示例时,出现以下错误,例如,使用Examples/csharp/variables:

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 :


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 

阅读ivar_set似乎没有问题.

There seems to be no problem in reading 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 具有[DllImport("example" ,在第191行的EntryPoint ="CSharp_ivar_set")].

examplePINVOKE.cs has the [DllImport("example", EntryPoint="CSharp_ivar_set")] at line 191.

怎么了?

推荐答案

设置


export DYLD_FALLBACK_LIBRARY_PATH=

解决了此问题.

我从获得了此提示mhutch .

这篇关于Mono 2.8上的SWIG中的System.EntryPointNotFoundException错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 08:12