[Mono-dev] Re: calling c# from c

Anna Ellis 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
variable.

Should I do this or move the installation of mono???????

Anna



-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Francisco
Figueiredo Jr.
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-----
Hash: SHA1

Anna Ellis wrote:
> Hi,
> 
>  

Hi Anna.
> 
> 
> 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/home/fxjr/Desenvolvimento/SourceRepositories/MonoCommit/install2.0/lib/pk
gconfig/../../include
- -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
- -Wl,--export-dynamic -pthread
-
-L/home/fxjr/Desenvolvimento/SourceRepositories/MonoCommit/install2.0/lib/pk
gconfig/../../lib
- -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
/home/fxjr/Desenvolvimento/SourceRepositories/MonoCommit/install2.0/lib


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.


- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://www.pgfoundry.org/projects/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -------------
"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

iQEVAwUBQ5mM6P7iFmsNzeXfAQJLWwf/YUemBVwGPlPNbTNdEVCCpTe+CZaNjW1r
yRnt98Wl/J4xzDTkyggTJdtmbnxD2x65FBGqcM0xpGxjjkWMjyiih3BSe8XH0Qyd
wSxdDjnh002cVh14nWe6DZV8Ipu6YQgb+lDx90ETaIXva19wqk5ipDDde6XxGKEp
JJcVFFacD4pM5A2fNy6pWb5EOYNPw9lAfLsErE7BcsCggLQIHsp2/k6tNZO0/j3E
JD43pyqY4G6KU4CImqf8OkX7N2r3eOJlHRBhGjoWXZsNh3TYiF6pG42CIm+oDa6V
nJVrPcL0rRyOadR6m4Ua4AKFYT3HTYN1u4x/6bbUNGjkn9vEeqk5Uw==
=NSAL
-----END PGP SIGNATURE-----

	

	
		
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list





More information about the Mono-devel-list mailing list