I am trying to link a static library (foo.a) - which contains C++ code - in an Xamarin.Android project following the directions found in Xamarin's docs. Neither the "path sniffing method," nor the "Abi element within the project file" method seems to work.
Using either method I get unhandled exceptions when I attempt to call into the library functions:
I/mono( 2591): [ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException: ...
I should mention that I have had no trouble linking and calling into this library (built for armv7, armv7s) with my Xamarin.iOS project using the "additional mtouch arguments" -cxx method described here. All of my DLLImports are the same across platforms...
[DllImport(Import.lib, CallingConvention=CallingConvention.Cdecl )]
internal static extern IntPtr FooMethodName(args);
So, what am I missing?
FYI: I am using Xamarin Studio 4.0.5 (build 4), Xamarin.Android 4.6.4 (Business Edition)