[Mono-list] C/C++ issue
Robert Jordan
robertj at gmx.net
Fri Nov 23 14:21:18 EST 2007
Jonas Thor wrote:
> Here is some more output:
>
> <-- snip -->
> ruskprick ~/src/monotest $ make
> gmcs HelloSample.cs
> gcc -fPIC --shared -o libhello_c.so hello_c.c
> gcc -fPIC --shared -o libhello_cpp.so hello_cpp.cpp
> ruskprick ~/src/monotest $ mono HelloSample.exe
> C Hello world...
>
> Unhandled Exception: System.DllNotFoundException: libhello_cpp
> at (wrapper managed-to-native) HelloSample:print_hello_world_cpp ()
> at HelloSample.Main () [0x00000]
> ruskprick ~/src/monotest $ ldd libhello_cpp.so
> linux-gate.so.1 => (0x00110000)
> libc.so.6 => /lib/libc.so.6 (0x00113000)
> /lib/ld-linux.so.2 (0x00ba2000)
> ruskprick ~/src/monotest $ ldd libhello_c.so
> linux-gate.so.1 => (0x00110000)
> libc.so.6 => /lib/libc.so.6 (0x00113000)
> /lib/ld-linux.so.2 (0x00ba2000)
> ruskprick ~/src/monotest $
>
> <-- snip -->
Try
MONO_LOG_LEVEL=info MONO_LOG_MASK=dll mono HelloSample.exe
This will log all native library operations.
Robert
More information about the Mono-list
mailing list