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

Francisco Figueiredo Jr. fxjrlists at yahoo.com.br
Fri Dec 9 08:55:52 EST 2005


-----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/pkgconfig/../../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/pkgconfig/../../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 




More information about the Mono-devel-list mailing list