dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]compile broken


From: Neil Cawse
Subject: [DotGNU]compile broken
Date: Thu, 28 Aug 2003 11:50:40 -0400

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

       }

}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]