[Insight-users] Itk 3.6 weird compile problem

J.S.Wijnhout at lumc.nl J.S.Wijnhout at lumc.nl
Tue Apr 15 08:31:14 EDT 2008


Hi,

 

I downloaded ITK 3.6 this morning (before the official announcement
btw.) and I'm having some troubles compiling the most basic program:

#include <itkPoint.h>

 

int main ( int, char ** )

{

  return 0;

}

 

 

I get the following errors (I've only printed the firs three):

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xutility(111) : error C2146: syntax error : missing ';'
before identifier 'difference_type'

        C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xutility(115) : see reference to class template
instantiation 'std::iterator_traits<_Ty*>' being compiled

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xutility(111) : error C2501:
'std::iterator_traits<_Ty*>::difference_type' : missing storage-class or
type specifiers

C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xutility(122) : error C2146: syntax error : missing ';'
before identifier 'difference_type'

 

I did not change anything in my compiler settings, although it seems
related to that, errors in the STL headers mostly are. Still I can't
seem to figure out what it wrong. For what it is worth, I can still
compile code that does not use ITK. I'm using Visual Studio 2003 SP1.
Any pointers are most welcome.

 

best,

Jeroen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080415/e0fcece2/attachment-0001.htm>


More information about the Insight-users mailing list