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

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 .