[Mono-devel-list] Building embed sample or cilc generated code on Windows

Candace Bain Candace_Bain at avid.com
Tue Jun 10 17:54:54 EDT 2003


I'm working on a proof of concept application that will need to call
from a C++ command line application into a C# object running under mono.
For performance testing I'll need to run the same app the same way on
both Linux and Windows.  I've been looking at the embed sample
application under /mono/samples/embed and the code that the cilc test
generates under /mcs/tools/cilc/generated, both of these work as
expected for me when I compile and run them on Linux.  I'm not able to
compile either of them on Windows.  The instructions for teste.c in
embed are to run:

gcc -o teste teste.c `pkg-config --cflags --libs mono` -lm

And the Makefile that cilc generates contains:

gcc -Wall -fpic -shared `pkg-config --cflags --libs glib-2.0 mono`
-lpthread *.c -o libdemo.so

If I run pkg-config --cflags --libs glib-2.0 mono manually it works and
returns:

-IC:/cygwin/users/candace/install/include
-I/users/candace/install/include/glib-2.0
-I/users/candace/install/lib/glib-2.0/include  -Wl,--export-dynamic
-LC:/cygwin/users/candace/install/lib -L/users/candace/install/lib
-lmono -lm -lgmodule-2.0 -lglib-2.0 -lintl -liconv



More information about the Mono-devel-list mailing list