dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08317
Problems building DOLFIN in Windows
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
Attachment:
dolfin-johannes-2008-06-20.patch
Description: Binary data
Follow ups