mail-archives/mono-osx/2012-June/005015.html

102 строки
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Cocoa dylib entry point not found
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=Re%3A%20%5BMono-osx%5D%20Cocoa%20dylib%20entry%20point%20not%20found&In-Reply-To=%3C1339545453483-4649905.post%40n4.nabble.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="005014.html">
<LINK REL="Next" HREF="005019.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Cocoa dylib entry point not found</H1>
<B>tlapse</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=Re%3A%20%5BMono-osx%5D%20Cocoa%20dylib%20entry%20point%20not%20found&In-Reply-To=%3C1339545453483-4649905.post%40n4.nabble.com%3E"
TITLE="[Mono-osx] Cocoa dylib entry point not found">tlapse at gmail.com
</A><BR>
<I>Tue Jun 12 23:57:33 UTC 2012</I>
<P><UL>
<LI>Previous message: <A HREF="005014.html">[Mono-osx] Problem building and using a Cocoa .dylib
</A></li>
<LI>Next message: <A HREF="005019.html">[Mono-osx] Cocoa dylib entry point not found
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5015">[ date ]</a>
<a href="thread.html#5015">[ thread ]</a>
<a href="subject.html#5015">[ subject ]</a>
<a href="author.html#5015">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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
&quot;qlrtsend&quot;
[i]#import &lt;Foundation/Foundation.h&gt;
#import &lt;Cocoa/Cocoa.h&gt;
@interface libQLRT : NSObject
{
}
- (NSString*) qlrtsend: (NSString*) request;
@end[/i]
Then in my MonoMac application I reference it
[DllImport(&quot;/Applications/MyApp/libQLRT.dylib&quot;)]
static extern NSString qlrtsend(NSString request);
.
.
.
NSString response = qlrtsend(new NSString(&quot;test&quot;));
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: <A HREF="http://mono.1490590.n4.nabble.com/Cocoa-dylib-entry-point-not-found-tp4649905.html">http://mono.1490590.n4.nabble.com/Cocoa-dylib-entry-point-not-found-tp4649905.html</A>
Sent from the Mono - OSX mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="005014.html">[Mono-osx] Problem building and using a Cocoa .dylib
</A></li>
<LI>Next message: <A HREF="005019.html">[Mono-osx] Cocoa dylib entry point not found
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5015">[ date ]</a>
<a href="thread.html#5015">[ thread ]</a>
<a href="subject.html#5015">[ subject ]</a>
<a href="author.html#5015">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>