[Mono-osx] Problem building and using a Cocoa .dylib

tlapse tlapse at gmail.com
Mon Jan 30 19:32:11 UTC 2012

The exception is "System.DllNotFoundException: my.dylib"

Same error if I name it "libmy.dylib".

If I copy "libcairo.dylib" from the Mono library to the same location as
my.dylib and use
[DllImport("libcairo.dylib", EntryPoint = "myProc", SetLastError = true, 
CallingConvention = CallingConvention.Cdecl)] 
It finds the library, but gives the error
"System.EntryPointNotFoundException: myProc" which is to be expected.

So it must be something about the structure of my.dylib. The Xcode project
for it lists Cocoa.framework, AppKit.framework, CoreData.framework and

View this message in context: http://mono.1490590.n4.nabble.com/Problem-building-and-using-a-Cocoa-dylib-tp4341716p4342251.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list