realbasic-plugins
[Top] [All Lists]

Re: The "right" way to use a dylib in a plugin ?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: The "right" way to use a dylib in a plugin ?
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Tue, 15 May 2007 20:14:58 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <A1CFA975-651F-48B0-BD2E-FF89C389024A at great-white-software dot com>
On May 15, 2007, at 6:02 PM, Norman Palardy wrote:

> I'm working on a plugin that in which I want to use a dylib
> In a plain C++ app in XCode I add the headers and the dylib and it  
> works
>
> When I do the same in a UB plugin, using David Addey's fine starter,
> I get linker errors which seem to suggest that I can't have a dylib
> or bundle use another dylib.


Under the hood Xcode will call dlopen, dlsym etc or uses the CFBundle  
apis. It is similar when using Visual C, i.e., dll-specific loading  
code is used. This means on windows to call LoadLibrary and  
GetProcAddress and on the mac after loading the bundle you will need  
to call CFBundleGetFunctionPointerForName.




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>