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

Hess, Philip J pjhess at purdue.edu
Mon Jan 30 20:43:53 UTC 2012


Note that normally you would never put your own library inside somebody else's framework.

Your code won't work. Your myProc is a class method in the qlrtx class. You need to write it as a standalone C function that only passes C types.

Thanks.

-Phil


________________________________________
From: mono-osx-bounces at lists.ximian.com [mono-osx-bounces at lists.ximian.com] On Behalf Of tlapse [tlapse at gmail.com]
Sent: Monday, January 30, 2012 3:40 PM
To: mono-osx at lists.ximian.com
Subject: Re: [Mono-osx] Problem building and using a Cocoa .dylib

First of all, I appreciate your help, thank you.

Progress!

I've seen the article you mentioned about locating dlls. I wish I could
figure out how to set the MONO_LOG_LEVEL to debug

You are correct. I moved my lib to
"/Library/Frameworks/Mono.framework/Versions/2.10.8/lib" and resolved the
Dll Not found exception.

Now I'm getting "System.EntryPointNotFoundException:", so it's finding the
dylib but something is still wrong with my dylib.
Am I missing some kind of declaration in my code?

//
#import <Foundation/Foundation.h>
@interface qlrtx : NSObject {
}
// On Mac, send an apple event
+(NSString*)myProc:(NSString*)msg;
@end




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


More information about the Mono-osx mailing list