System.EntryPointNotFoundException error in SWIG on mono 2.8

佐手、 提交于 2019-12-11 12:49:40

问题


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 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 has the [DllImport("example", EntryPoint="CSharp_ivar_set")] at line 191.

What might be wrong?


回答1:


Setting up

export DYLD_FALLBACK_LIBRARY_PATH=

solves this issue.

I got this hint from mhutch.



来源:https://stackoverflow.com/questions/3918410/system-entrypointnotfoundexception-error-in-swig-on-mono-2-8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!