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

tlapse tlapse at gmail.com
Mon Jan 30 17:28:56 UTC 2012


I created a simple Cocoa .dylib in Xcode and place it in the same folder as
my app, but I'm not able to use it from C#.

[DllImport("my.dylib", EntryPoint = "myProc", SetLastError = true,
CallingConvention = CallingConvention.Cdecl)]

This raises a DLL not found exception, but if I put some other .dylib in the
same place, it is found. So it's apparently not a search path problem.

I buily the lib in Xcode for 32-bit intel, mac osx 10.6

Any ideas?


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


More information about the Mono-osx mailing list