[Mono-list] Compiling mono on windows

Richard Torkar richard.torkar@htu.se
Fri, 15 Mar 2002 07:19:29 +0100 (CET)


On Thu, 14 Mar 2002, James Ots wrote:

> 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
> -IC:/cygwin/home/Administrator/mono/install/include/glib-2.0 -IC
> :/cygwin/home/Administrator/mono/install/lib/glib-2.0/include   -I../..
> -DMONO_ASSEMBLIES=\""C:/cygwin/home/Administrator/mono/install/lib"\"
>             -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'
> ...
> 

I have a couple of students seeing that exact thing. I will try to dig 
deeper into this today and see if I can work something out.



/Richard

--
Ph.D. student
University of Trollhättan/Uddevalla
Dept. of Informatics and Mathematics
Phone(work):  +46 520 475324
Phone(mobile):+46 706 840845
Fax:          +46 520 475399