[vtkusers] Compile errors in threads.c
Gib Bogle
g.bogle at auckland.ac.nz
Sat Aug 28 06:06:53 EDT 2010
Hi, I'm trying to build VTK 5.6 using MinGW 4.4. There are several
errors when compiling threads.c:
C:\VTK-src\Utilities\vtklibxml2\threads.c: In function
'vtk_libxml2_xmlRMutexUnl
ock':
C:\VTK-src\Utilities\vtklibxml2\threads.c:399: error: incompatible
types when as
signing to type 'pthread_t' from type 'int'
C:\VTK-src\Utilities\vtklibxml2\threads.c: In function
'vtk_libxml2_xmlGetThread
Id':
C:\VTK-src\Utilities\vtklibxml2\threads.c:624: error: aggregate value
used where
an integer was expected
C:\VTK-src\Utilities\vtklibxml2\threads.c: In function
'vtk_libxml2_xmlIsMainThr
ead':
C:\VTK-src\Utilities\vtklibxml2\threads.c:660: error: invalid operands
to binary
== (have 'pthread_t' and 'pthread_t')
C:\VTK-src\Utilities\vtklibxml2\threads.c: In function 'xmlOnceInit':
C:\VTK-src\Utilities\vtklibxml2\threads.c:790: error: 'run_once'
undeclared (fir
st use in this function)
C:\VTK-src\Utilities\vtklibxml2\threads.c:790: error: (Each undeclared
identifie
r is reported only once
C:\VTK-src\Utilities\vtklibxml2\threads.c:790: error: for each
function it appea
rs in.)
C:\VTK-src\Utilities\vtklibxml2\threads.c:796: error: incompatible
types when as
signing to type 'pthread_t' from type 'DWORD'
mingw32-make[2]: ***
[Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o
bj] Error 1
mingw32-make[1]: ***
[Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] Error
2
mingw32-make: *** [all] Error 2
Is there a way around this problem?
Thanks
Gib
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the vtkusers
mailing list