I’m working on Xamarin and trying to install an iOS app on my iPad.
I want to link an Ada static library.
So I have a libMyLibrary.a
+ libgnat.a
file and a C header code (MyLibrary.h
).
- In Xamarin, I created a binding library project and added my library.
- In Xamarin, I added the above project as a reference to my iPad app.
To communicate with the library I used the P/Invoke with a DllImport(“__Internal”)
and an assembly for my lib (so I don’t have any MTouch arguments) :
[assembly: LinkWith(“libMyLibrary.a”, SmartLink=true, ForceLoad=true)]
[assembly: LinkWith(“libgnat.a”, SmartLink=true, ForceLoad=true)]
But when I deploy it to the iPad I have a lot of native linking errors:
Native linking error: warning: could not create compact unwind for XXX does not use standard frame (MT5209)
I tried to use the monotouch arguments but no success:
-Wl,-no_compact_unwind
! see ld: warning: too many personality routines for compact unwind to encode and https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/279914LDFLAGS="-Wl,-no_compact_unwind
: see https://bugzilla.mozilla.org/show_bug.cgi?id=1188030#c14
Any ideas?
Configuration:
- iOS 10.3.2
- Xamarin 6.3
- Deployment target 10.3