[Insight-users] Re: ITK Wrappers and gcc_xml

Brad King brad.king at kitware.com
Thu Feb 16 09:26:10 EST 2006


Charl P. Botha wrote:
> Just to make 100% sure, I added --gccxml-compiler msvc71 (which is the
> vs.net 2003 that I use) to the GCCXML_CREATE_XML_FILE macro in
> CreateWrapperLibrary.cmake of my WrapITK checkout and rebuilt the
> whole thing.  I still get exactly the same errors:

It was probably already using that compiler if that was the compiler 
that built it so there is no surprise the errors remain.

> c:\build\WrapITK-VS71\CommonA\wrap_ITKCommonBasePython.cxx(3833):
> error C2664: 'itk::MultiThreader::SetMultipleMethod' : cannot convert
> parameter 2 from 'unsigned long (__cdecl *)(void *)' to
> 'itk::ThreadFunctionType'

Do you know how ThreadFunctionType is defined for this compiler?  You 
can run the GCC-XML command line by hand and add "-E" to see the 
preprocessed output.  It could simply be that GCC's parser cannot handle 
what is produced by the simulated MSVC preprocessing.  In that case 
we'll have to add some code that fixes the problem using __GCCXML__ to 
detect when the fixes are needed.

-Brad


More information about the Insight-users mailing list