Mono 2.8 上 SWIG 中的 System.EntryPointNotFoundException 错误
我询问了在 mono 2.8 上运行 Swig 示例时出现的错误 在这里。
添加“-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
读取 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", EntryPoint= "CSharp_ivar_set")] 在第 191 行。
可能出了什么问题?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置
可以解决这个问题。
我从 mhutch。
Setting up
solves this issue.
I got this hint from mhutch.