[Mono-list] Compiling mono on windows

James Ots me@jamesots.com
Thu, 14 Mar 2002 21:41:28 +0000

I've been reading the mono list for a while now, and I've been playing
around a little on linux. Today I finally managed to get cygwin
installed on Windows 2000 and I'm trying to compile everything. mcs
compiled perfectly - I just checked everything out of cvs and typed
'make windows' and a couple of minutes later I had mcs.exe which works.

Then I moved onto mono. I ran mono-build-w32.sh which went off and got
all the files, created the makefiles and then ran make. But halfway
through, while trying to compile mono/mono/metadata/reflection.c I get this:

Making all in metadata
make[3]: Entering directory `/home/Administrator/mono/mono/mono/metadata'
source='reflection.c' object='reflection.o' libtool=no \
depfile='.deps/reflection.Po' tmpdepfile='.deps/reflection.TPo' \
depmode=gcc /bin/sh ../../depcomp \
gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../..
-IC:/cygwin/home/Administrator/mono/install/include/glib-2.0 -IC
:/cygwin/home/Administrator/mono/install/lib/glib-2.0/include   -I../..
            -I/home/Administrator/mono/install/include  -g -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -mno-cygwin -c `test -f
reflection.c || echo './'`reflection.c
reflection.c: In function `mono_image_get_type_info':
reflection.c:1159: parse error before `struct'
reflection.c:1161: parse error before `struct'
reflection.c: At top level:
reflection.c:142: warning: `string_heap_free' defined but not used
make[3]: *** [reflection.o] Error 1
make[3]: Leaving directory `/home/Administrator/mono/mono/mono/metadata'

Is this to be expected, or have I done something wrong? Should I just
wait a while, update my sources and try again?

James Ots