Re: [Mono-list] Can't get a simple shared object to be used - DllNotFoundException

2013-08-02 Thread thomasw234
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

Re: [Mono-list] Can't get a simple shared object to be used - DllNotFoundException

2013-08-02 Thread thomasw234
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

[Mono-list] Can't get a simple shared object to be used - DllNotFoundException

2013-08-02 Thread thomasw234
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