dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08320
Re: Problems building DOLFIN in Windows
On Fri, Jun 20, 2008 at 03:51:12PM +0200, Johannes Ring wrote:
> Hello,
>
> I have some trouble compiling DOLFIN in Windows. When running scons I get
> the following error message:
>
> g++-sjlj -o dolfin\common\utils.o -c -Wall -pipe -ansi -DDEBUG -g -Werror
> -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.7.3\" -I. -IC:\local\include
> -IC:\boost_1_35_0 -IC:\local\include\libxml dolfin\common\utils.cpp
> dolfin\common\utils.cpp: In function 'void dolfin::delay(dolfin::real)':
> dolfin\common\utils.cpp:60: error: aggregate 'timespec req' has incomplete
> type
> and cannot be defined
> dolfin\common\utils.cpp:64: error: 'nanosleep' was not declared in this scope
> scons: *** [dolfin\common\utils.o] Error 1
> scons: building terminated because of errors.
>
> After some googling, it seems that nanosleep is not available in Windows,
> however, one can use the Windows function Sleep instead (as suggested
> here: http://rabbit.eng.miami.edu/info/functions/dos.html). I have created
> a patch (attached), but someone with more knowledge on the subject should
> probably look it over.
>
> Johannes
It's not necessary for us to use nanosleep(). Do you know if there is
any other cross-platform function we could use for timing?
Anyway, I'll apply the patch.
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References