簡體   English   中英

Mono 2.8上的SWIG中的System.EntryPointNotFoundException錯誤

[英]System.EntryPointNotFoundException error in SWIG on mono 2.8

我問及在Mono 2.8運行痛飲例子錯誤這里

添加“ -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在第191行有[DllImport(“ example”,EntryPoint =“ CSharp_ivar_set”)]。

可能是什么問題?

配置

export DYLD_FALLBACK_LIBRARY_PATH=

解決了這個問題。

我從麥克赫特那里得到了這個提示。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM