[Mono-osx] Cocoa dylib entry point not found

tlapse tlapse at gmail.com
Tue Jun 12 23:57:33 UTC 2012

I'm sure I'm missing something simple; but I'm a Windows .Net person not a
MAC person.

In the .h file of my simple cocoa dynamic library I declare a method

        [i]#import <Foundation/Foundation.h>
        #import <Cocoa/Cocoa.h>
        @interface libQLRT : NSObject
        - (NSString*) qlrtsend: (NSString*) request;

Then in my MonoMac application I reference it

        static extern NSString qlrtsend(NSString request);
	NSString response = qlrtsend(new NSString("test"));

It finds the lib, but I get an EntryPointNotFound error.

What magic must I do to declare a method in a Cocoa library so I can
reference it in MonoMac?
Is this documented anywhere?

View this message in context: http://mono.1490590.n4.nabble.com/Cocoa-dylib-entry-point-not-found-tp4649905.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list