Thanks for all of your replies. Unfortunately I've already tried most of what
was suggested, except modifying LD_LIBRARY_PATH. The only resource that my
shared object is using is stdio.h, do I need to add the path of that?
I've managed to take a screenshot from the machine which hopefully shows
Also, running with MONO_DEBUG_LEVEL=debug outputs a lot, but this seems like
the relevant part:
Somehow it's looking right at the file and deciding that it's not there,
which is what led me to believe that it might be a platform problem, but as
I said, compiling the shared object to 32bit
Hi,
I'm trying to get my head around making use of Linux shared object files. I
have created a basic C-based shared object which prints (Shared Object
Called) when main() is called. Compiled it in gcc with -fPIC and got
libshared.so as an output.
Go into C#, add [DllImport(libshared.so)] public
Here we go, I was on my nexus yesterday so couldnt easily grab these:
http://www.mono-project.com/Interop_with_Native_Libraries
http://www.mono-project.com/DllNotFoundException
http://www.mono-project.com/Config_DllMap
Ian
On 31 July 2013 03:33, Jonathan Pryor jonpr...@vt.edu wrote:
On Jul
I've never done that myself, but if I remember correctly, you're not supposed
to add the .so part. Just do [DllImport(libshared)]. That way, it's up
to the framework to figure out the right extension depending on the OS it
runs on.
In other words, that'd mean it can't find your file because it's
Dllimport tells the loader the library name.
A large combination of things work as library loading and shared objects
differ greatly on windows and unix.
On windows, the library could be installed in the side-by-side cache or in
the same folder as your assembly etc.
If you have a file called
On Jul 30, 2013, at 5:34 PM, Stifu st...@free.fr wrote:
I've never done that myself, but if I remember correctly, you're not supposed
to add the .so part. Just do [DllImport(libshared)].
Close; you should prefer [DllImport(shared)], with one exception. On Windows,
this will try to load