dotgnu-general
[Top][All Lists]
Advanced

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

RE: [DotGNU]compile broken


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-----
From:
Neil Cawse [mailto:address@hidden.com]
Sent:
Friday, 29 August 2003 3:51 a.m.
To:
address@hidden.org
Subject: [DotGNU]compile broken

 

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

       }

}


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.298 / Virus Database: 161 - Release Date: 13/11/2001


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.298 / Virus Database: 161 - Release Date: 13/11/2001


reply via email to

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