开发者

System.EntryPointNotFoundException error in SWIG on mono 2.8

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

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 

There seems to be no problem in re开发者_运维知识库ading 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.

What might be wrong?


Setting up

export DYLD_FALLBACK_LIBRARY_PATH=

solves this issue.

I got this hint from mhutch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜