[Insight-developers] compiling problems

zhuge zhuge@mipg.upenn.edu
Wed, 10 Jan 2001 18:26:31 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C07B32.DB0E42A0
Content-Type: text/plain;
	charset="utf-7"
Content-Transfer-Encoding: quoted-printable


I just downloaded the ITK, when compiling, something wrong happened. =
There are totally six kinds of error types as following, type 2 only =
happened for release version,   Please help me out. Thanks a lot+ACE-

Platform: Win98, MSVC+-+- 6.0


Ying


1)
Compiling...
itkAffineTransformTest.cxx
C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.txx(127) : error =
C2572: 'Compose' : redefinition of default parameter : parameter 2
        C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.h(212) : =
see declaration of 'Compose'
C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.txx(145) : error =
C2572: 'Translate' : redefinition of default parameter : parameter 2
        C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.h(221) : =
see declaration of 'Translate'
-------------------------------------------------------------------------=
-------------------------------------------------

2)
Linking...
   Creating library Release/itkBasicArchitectureTest.lib and object =
Release/itkBasicArchitectureTest.exp
itkBasicArchitectureTest.obj : error LNK2001: unresolved external symbol =
+ACI-public: class itk::ProcessObject +ACo- +AF8AXw-thiscall =
itk::SmartPointerForwardReference+ADw-class =
itk::ProcessObject+AD4-::operator-+AD4-(void)const +ACI- =
(??C?+ACQ-SmartPointerForwardReference+AEA-VProcessO
bject+AEA-itk+AEAAQABA-itk+AEAAQA-QBEPAVProcessObject+AEA-1+AEA-XZ)
itkBasicArchitectureTest.obj : error LNK2001: unresolved external symbol =
+ACI-public: +AF8AXw-thiscall =
itk::SmartPointerForwardReference+ADw-class =
itk::ProcessObject+AD4-::operator class itk::ProcessObject =
+ACo-(void)const +ACI- =
(??B?+ACQ-SmartPointerForwardReference+AEA-VProcessObj
ect+AEA-itk+AEAAQABA-itk+AEAAQA-QBEPAVProcessObject+AEA-1+AEA-XZ)
Release/itkBasicArchitectureTest.exe : fatal error LNK1120: 2 unresolved =
externals
Error executing link.exe.

itkBasicArchitectureTest.exe - 3 error(s), 11 warning(s)


3)-----------------------
C:/Users/zhg/Insight/Code/Insight3DParty/vxl+AFw-vnl/vnl+AF8-matrix+AF8-f=
ixed.h(28) : error C2503: 'vnl+AF8-matrix+AF8-fixed+AF8-ref+ADw-unsigned =
int,0,0+AD4-' : base classes cannot contain zero-sized arrays
        =
C:/Users/zhg/Insight/Code/Common+AFw-itkLevelSetCurvatureFunction.h(145) =
: see reference to class template instantiation =
'vnl+AF8-matrix+AF8-fixed+ADw-unsigned int,0,0+AD4-' being compiled
        =
C:/Users/zhg/Insight/Code/Common+AFw-itkLevelSetCurvatureFunction.h(152) =
: see reference to class template instantiation =
'itk::LevelSetCurvatureFunction+ADw-TInputImage+AD4-' being compiled

itkCurvatureFlowTest.exe - 2 error(s), 18 warning(s)

4)-------------------
C:/Users/zhg/Insight/Code/Common+AFw-itkNeighborhoodOperator.txx(19) : =
fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 1794)=20
         Please choose the Technical Support command on the Visual C+-+- =

         Help menu, or open the Technical Support help file for more =
information

5)------------------
c:+AFw-users+AFw-zhg+AFw-insight+AFw-code+AFw-common+AFw-itkneighborhoodo=
perator.txx(19) : fatal error C1903: unable to recover from previous =
error(s)+ADs- stopping compilation


6)------------------
c:+AFw-users+AFw-zhg+AFw-insight+AFw-code+AFw-insight3dparty+AFw-vxl+AFw-=
vnl+AFw-vnl+AF8-numeric+AF8-limits.h(61) : error C2059: syntax error : =
'function-style cast'
        =
c:+AFw-users+AFw-zhg+AFw-insight+AFw-code+AFw-insight3dparty+AFw-vxl+AFw-=
vnl+AFw-vnl+AF8-numeric+AF8-limits.h(190) : see reference to class =
template instantiation 'vnl+AF8-numeric+AF8-limits+ADw-T+AD4-' being =
compiled




------=_NextPart_000_003F_01C07B32.DB0E42A0
Content-Type: text/html;
	charset="utf-7"
Content-Transfer-Encoding: quoted-printable

+/v8APAAh-DOCTYPE HTML PUBLIC +ACI--//W3C//DTD HTML 4.0 =
Transitional//EN+ACIAPg-
+ADw-HTML+AD4APA-HEAD+AD4-
+ADw-META content+AD0AIg-text/html+ADs- charset+AD0-utf-7+ACI- =
http-equiv+AD0-Content-Type+AD4-
+ADw-META content+AD0AIg-MSHTML 5.00.2614.3500+ACI- =
name+AD0-GENERATOR+AD4-
+ADw-STYLE+AD4APA-/STYLE+AD4-
+ADw-/HEAD+AD4-
+ADw-BODY bgColor+AD0AIw-ffffff+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4APA-/FONT+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-I just downloaded the ITK, when =
compiling, something wrong=20
happened. There are totally six kinds of error types as =
following,+ACY-nbsp+ADs-type 2=20
only happened for release version,   Please help me out. Thanks a=20
lot+ACEAPA-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4APA-/FONT+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-Platform: Win98, MSVC+-+- =
6.0+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-Ying+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4APA-/FONT+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-1)+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT=20
face+AD0-Arial+AD4-Compiling...+ADw-BR+AD4-itkAffineTransformTest.cxx+ADw=
-BR+AD4-C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.txx(127) =

: error C2572: 'Compose' : redefinition of default parameter : parameter =

2+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsA=
Jg-nbsp+ADsAJg-nbsp+ADs-=20
C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.h(212) : see =
declaration of=20
'Compose'+ADw-BR+AD4-C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransf=
orm.txx(145) :=20
error C2572: 'Translate' : redefinition of default parameter : parameter =

2+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsA=
Jg-nbsp+ADsAJg-nbsp+ADs-=20
C:/Users/zhg/Insight/Code/Common+AFw-itkAffineTransform.h(221) : see =
declaration of=20
'Translate'+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT=20
face+AD0-Arial+AD4-------------------------------------------------------=
--------------------------------------------------------------------+ADw-=
/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-2)+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4-Linking...+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADs- =
Creating library=20
Release/itkBasicArchitectureTest.lib and object=20
Release/itkBasicArchitectureTest.exp+ADw-BR+AD4-itkBasicArchitectureTest.=
obj : error=20
LNK2001: unresolved external symbol +ACI-public: class =
itk::ProcessObject +ACo-=20
+AF8AXw-thiscall itk::SmartPointerForwardReference+ACY-lt+ADs-class=20
itk::ProcessObject+ACY-gt+ADs-::operator-+ACY-gt+ADs-(void)const +ACI-=20
(??C?+ACQ-SmartPointerForwardReference+AEA-VProcessO+ADw-BR+AD4-bject+AEA=
-itk+AEAAQABA-itk+AEAAQA-QBEPAVProcessObject+AEA-1+AEA-XZ)+ADw-BR+AD4-itk=
BasicArchitectureTest.obj=20
: error LNK2001: unresolved external symbol +ACI-public: =
+AF8AXw-thiscall=20
itk::SmartPointerForwardReference+ACY-lt+ADs-class =
itk::ProcessObject+ACY-gt+ADs-::operator=20
class itk::ProcessObject +ACo-(void)const +ACI-=20
(??B?+ACQ-SmartPointerForwardReference+AEA-VProcessObj+ADw-BR+AD4-ect+AEA=
-itk+AEAAQABA-itk+AEAAQA-QBEPAVProcessObject+AEA-1+AEA-XZ)+ADw-BR+AD4-Rel=
ease/itkBasicArchitectureTest.exe=20
: fatal error LNK1120: 2 unresolved externals+ADw-BR+AD4-Error executing =

link.exe.+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-itkBasicArchitectureTest.exe - 3 =
error(s), 11=20
warning(s)+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4APA-/FONT+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4-3)-----------------------+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT=20
face+AD0-Arial+AD4-C:/Users/zhg/Insight/Code/Insight3DParty/vxl+AFw-vnl/v=
nl+AF8-matrix+AF8-fixed.h(28)=20
: error C2503: 'vnl+AF8-matrix+AF8-fixed+AF8-ref+ACY-lt+ADs-unsigned =
int,0,0+ACY-gt+ADs-' : base classes=20
cannot contain zero-sized =
arrays+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp=
+ADsAJg-nbsp+ADsAJg-nbsp+ADs-=20
C:/Users/zhg/Insight/Code/Common+AFw-itkLevelSetCurvatureFunction.h(145) =
: see=20
reference to class template instantiation =
'vnl+AF8-matrix+AF8-fixed+ACY-lt+ADs-unsigned=20
int,0,0+ACY-gt+ADs-' being =
compiled+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nb=
sp+ADsAJg-nbsp+ADsAJg-nbsp+ADs-=20
C:/Users/zhg/Insight/Code/Common+AFw-itkLevelSetCurvatureFunction.h(152) =
: see=20
reference to class template instantiation=20
'itk::LevelSetCurvatureFunction+ACY-lt+ADs-TInputImage+ACY-gt+ADs-' =
being compiled+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT face+AD0-Arial+AD4-itkCurvatureFlowTest.exe - 2 =
error(s), 18=20
warning(s)+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4-4)-------------------+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT=20
face+AD0-Arial+AD4-C:/Users/zhg/Insight/Code/Common+AFw-itkNeighborhoodOp=
erator.txx(19) :=20
fatal error C1001: INTERNAL COMPILER=20
ERROR+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+=
ADsAJg-nbsp+ADsAJg-nbsp+ADs- (compiler file 'msc1.cpp',=20
line 1794) =
+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJ=
g-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADs- Please choose=20
the Technical Support command on the Visual C+-+-=20
+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJ=
g-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADs- Help menu, or open the=20
Technical Support help file for more =
information+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4-5)------------------+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT=20
face+AD0-Arial+AD4-c:+AFw-users+AFw-zhg+AFw-insight+AFw-code+AFw-common+A=
Fw-itkneighborhoodoperator.txx(19) :=20
fatal error C1903: unable to recover from previous error(s)+ADs- =
stopping=20
compilation+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT =
face+AD0-Arial+AD4-6)------------------+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4APA-FONT=20
face+AD0-Arial+AD4-c:+AFw-users+AFw-zhg+AFw-insight+AFw-code+AFw-insight3=
dparty+AFw-vxl+AFw-vnl+AFw-vnl+AF8-numeric+AF8-limits.h(61)=20
: error C2059: syntax error : 'function-style=20
cast'+ADw-BR+AD4AJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+ADsAJg-nbsp+=
ADsAJg-nbsp+ADsAJg-nbsp+ADs-=20
c:+AFw-users+AFw-zhg+AFw-insight+AFw-code+AFw-insight3dparty+AFw-vxl+AFw-=
vnl+AFw-vnl+AF8-numeric+AF8-limits.h(190) : see=20
reference to class template instantiation =
'vnl+AF8-numeric+AF8-limits+ACY-lt+ADs-T+ACY-gt+ADs-' being=20
compiled+ADw-/FONT+AD4APA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4-
+ADw-DIV+AD4AJg-nbsp+ADsAPA-/DIV+AD4APA-/BODY+AD4APA-/HTML+AD4-

------=_NextPart_000_003F_01C07B32.DB0E42A0--