[MonoDevelop] Newbie question: Making a reference to a linux shared library
Andy Selvig
ajselvig at gmail.com
Mon Oct 6 07:55:23 EDT 2008
On Mon, Oct 6, 2008 at 6:41 AM, Petit Eric <surfzoid at gmail.com> wrote:
> 2008/10/6 alanb <alan.battersby at ntlworld.com>:
>>
>> I tried P/Invoke, I created a shared library, wrapped it in C# class and it
>> all compiles ok. But when I try to execute one of the external functions I
>> get an exception - System.DllNotFoundException: libtest.so . As this is an
>> experiment I do not want to place my library in /usr , /lib etc so I tried
>> setting LD_LIBRARY_PATH in a shell but that doesnt seem to work for me. I am
>> assuming that I need to set LD_LIBRARY_PATH in the shell created by
>> monodevelops run command, so can someone tell me how to do this?
Alan-
You can also simply copy the the library to the bin directory of your
application. This can be done MonoDevelop with a post-build event.
Native libraries can't be added as references, only the assembly that
wraps it.
More information about the Monodevelop-list
mailing list