[Mono-dev] Re: calling c# from c
anna.ellis at allnewvideo.com
Fri Dec 9 08:45:20 EST 2005
Ok my glib2-2.0 is in usr/lib/libglib2.0.so.0.2003
Mono is installed in /opt/mono-1.1.10
Apparently this is not found in the pkg-config search path.
It is suggested that I add this path to the PKG_CONFIG_PATH environment
Should I do this or move the installation of mono???????
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Francisco
Sent: 09 December 2005 13:56
To: Anna Ellis
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Re: calling c# from c
-----BEGIN PGP SIGNED MESSAGE-----
Anna Ellis wrote:
> I have tried to write a separate piece following the "Initializing the
> Mono runtime" BUT gcc sample.c 'pkg-config --cflags --libs mono'
> produces 'no such file or directory'
Hmmm, I tired here and I think your problem of 'no such file or
directory' comes from you usage of ' ' to inline the call to pkg-config.
You should use ` ` (acute accent. On US keyboard it is located at left
of numeric 1. On My keyboard it is in the same key as ~.)
> I understand that it is trying to find the mono libraries (for the
> runtime) but I'm really not sure where they are.
if you execute just the line
pkg-config --cflags --libs mono
it should return you a response like that:
$ pkg-config --cflags --libs mono
- -D_REENTRANT -pthread
- -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
- -Wl,--export-dynamic -pthread
- -lmono -lpthread -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
Note that your will differ from mine.
If you installed from installation packages, your mono libs may be
located at /usr/lib.
On my system they are located at
Also note that in order for this to work, you have to install the devel
packages of Mono if you system have them.
I hope it helps.
Francisco Figueiredo Jr.
Npgsql Lead Developer
MonoBrasil Project Founder Member
"Science without religion is lame;
religion without science is blind."
~ Albert Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Yahoo! doce lar. Faça do Yahoo! sua homepage.
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list