|
From: | Thong (Tum) Nguyen |
Subject: | RE: [DotGNU]compile broken |
Date: | Fri, 29 Aug 2003 06:43:26 +1200 |
Hi Neil,
That’s fixed in CVS now. ^Tum -----Original Message-----
There is a problem compiling the pnet cvs under cygwin
gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../include -I../libffi/include -fno -gcse -fno-inline-functions -I../include -I../libffi/include -I. -DBUILD_PROFILE _NAME="\"full\"" -g -O2 -Wall -c `test -f 'lib_thread.c' || echo './'`lib_thread .c lib_thread.c: In function `_IL_Thread_SpinWait': lib_thread.c:1057: `ms' undeclared (first use in this function) lib_thread.c:1057: (Each undeclared identifier is reported only once lib_thread.c:1057: for each function it appears in.) make[1]: *** [lib_thread.o] Error 1 make[1]: Leaving directory `/home/Neil Cawse/pnet/engine' make: *** [all-recursive] Error 1
problem code is
/* * public static void SpinWait(int iterations); */ void _IL_Thread_SpinWait(ILExecThread *_thread, ILInt32 iterations) { /* Convert the spin wait into a sleep request, because dead loop spinning for a long time is not a very good idea under multi-tasking operating systems. We pick an arbitrary resolution of 1 iteration equal to 1 microsecond, which will give some consistency across platforms */ if(iterations > 0) { #ifdef HAVE_USLEEP usleep((unsigned long)(long)iterations); #else ILThreadSleep((ILUInt32)(ms / 1000)); #endif } } --- --- |
[Prev in Thread] | Current Thread | [Next in Thread] |