[Mono-list] P/Invoke on amd64 was :Marshalling problems
James Fitzsimons
james.fitzsimons@gmail.com
Sun, 13 Feb 2005 16:00:12 +0000
--=-88EQT0h/p58+dlT2CYAG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi Michal
On Sun, 2005-02-13 at 15:22, Michal Moskal wrote:
> Hmm, maybe through gmodule:
>=20
> // compile with:
> // gcc `pkg-config --libs --cflags gmodule-2.0` fo.c
> #include <gmodule.h>
>=20
> int main()
> {
> GModule *mod;
> mod =3D g_module_open("libncurses", G_MODULE_BIND_LAZY);
> if (mod =3D=3D NULL)
> printf("error: %s\n", g_module_error ());
> else
> printf("ok: %p\n", mod);
> return 0;
> }
Ok, just tried this and when I run the program I get the following
output:
james@athos src $ ./a.out=20
error: /usr/lib/libncurses.so: invalid ELF header
So, it appears you are right and the problem is with gmodule? So, I
guess the next question is do you know how I can fix this?
Thanks so much for your help with this,
James
--=20
It's 5.50 a.m.... Do you know where your stack pointer is ?
--=-88EQT0h/p58+dlT2CYAG
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBCD3mMtf4qL6AoafMRAoWMAJ9+KqkDJwXjdTnHavUyHGGT2RPgtwCgmY0R
dOlpXTLP7JK9+x8rbdITzJg=
=/p8o
-----END PGP SIGNATURE-----
--=-88EQT0h/p58+dlT2CYAG--