[Mono-list] P/Invoke on amd64 was :Marshalling problems
Michal Moskal
Michal Moskal <michal.moskal@gmail.com>
Sun, 13 Feb 2005 12:48:30 +0100
On Sun, 13 Feb 2005 12:41:07 +0100, Michal Moskal
<michal.moskal@gmail.com> wrote:
> On Sun, 13 Feb 2005 10:44:20 +0000, James Fitzsimons
> <james.fitzsimons@gmail.com> wrote:
> > Finally, you should try running mono with MONO_LOG_LEVEL=info and
> > > MONO_lOG_MASK=dll.
> > When I try to run the curses example with logging on I get the following:
> > Mono-INFO: DllImport loading: 'libncurses'.
> > Mono-INFO: DllImport error loading library '/usr/lib/libncurses.so:
> > invalid ELF header'.
>
> Just a wild guess -- maybe you gmodule library is not compiled with 64
> bit support.
Ok, this one was stupid :-) glib uses dlopen to open the module and
the message seems to come from dlopen. Maybe you can try to write a
little C program that only dlopens libncurses.so and see if it works.
--
: Michal Moskal :: http://nemerle.org/~malekith/ :: GCS !tv h e>+++ b++
: Logic - the art of being wrong with confidence :: UL++++$ C++ E--- a?