[Mono-list] C/C++ issue
Jonas Thor
jonas.thor at consoden.se
Fri Nov 23 15:05:18 EST 2007
2007/11/23, Robert Jordan <robertj at gmx.net>:
>
> Try
>
> MONO_LOG_LEVEL=info MONO_LOG_MASK=dll mono HelloSample.exe
>
> This will log all native library operations.
>
> <-- snip -->
ruskprick ~/src/monotest $ setenv MONO_LOG_LEVEL info
ruskprick ~/src/monotest $ setenv MONO_LOG_MASK dll
ruskprick ~/src/monotest $ mono HelloSample.exe
Mono-INFO: DllImport attempting to load: 'libhello_c'.
Mono-INFO: DllImport loading location: 'libhello_c'.
Mono-INFO: Searching for 'print_hello_world_c'.
Mono-INFO: Probing 'print_hello_world_c'.
Mono-INFO: Found as 'print_hello_world_c'.
Mono-INFO: DllImport attempting to load: 'libhello_cpp'.
Mono-INFO: DllImport loading location: 'libhello_cpp'.
Mono-INFO: DllImport error loading library:
'/home/thor/src/monotest/libhello_cpp.so: undefined symbol:
__gxx_personality_v0'.
Mono-INFO: DllImport loading library: './libhello_cpp'.
Mono-INFO: DllImport error loading library './libhello_cpp.so: undefined
symbol: __gxx_personality_v0'.
Mono-INFO: DllImport loading: 'libhello_cpp'.
Mono-INFO: DllImport error loading library
'/home/thor/src/monotest/libhello_cpp.so: undefined symbol:
__gxx_personality_v0'.
(HelloSample.exe:25022): Mono-WARNING **: DllImport unable to load library
'/home/thor/src/monotest/libhello_cpp.so: undefined symbol:
__gxx_personality_v0'.
C Hello world...
Mono-INFO: DllImport attempting to load: 'libhello_cpp'.
Mono-INFO: DllImport loading location: 'libhello_cpp'.
Mono-INFO: DllImport error loading library:
'/home/thor/src/monotest/libhello_cpp.so: undefined symbol:
__gxx_personality_v0'.
Mono-INFO: DllImport loading library: './libhello_cpp'.
Mono-INFO: DllImport error loading library './libhello_cpp.so: undefined
symbol: __gxx_personality_v0'.
Mono-INFO: DllImport loading: 'libhello_cpp'.
Mono-INFO: DllImport error loading library
'/home/thor/src/monotest/libhello_cpp.so: undefined symbol:
__gxx_personality_v0'.
(HelloSample.exe:25022): Mono-WARNING **: DllImport unable to load library
'/home/thor/src/monotest/libhello_cpp.so: undefined symbol:
__gxx_personality_v0'.
Unhandled Exception: System.DllNotFoundException: libhello_cpp
at (wrapper managed-to-native) HelloSample:print_hello_world_cpp ()
at HelloSample.Main () [0x00000]
ruskprick ~/src/monotest $
<-- snip -->
/jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071123/77bd0be9/attachment.html
More information about the Mono-list
mailing list