[Insight-developers] Attempting to compile itk on Windows: VC++

Luis Ibanez luis . ibanez at kitware . com
Fri, 21 Jun 2002 15:58:42 -0400


Hi Joetta,

The warning:  C4786 is harmless,

It basically say that the lenght of our variable names are
overwhelming for VC++ which only keeps 255 caracters for
symbol names during debuging.

If you build for Release these warning will not appear, but
compilation will take longer since the compiler makes more
efforts for optimizing the code.  For a first try of the
toolkit it is probably better to use Debug mode.

In most places on the toolkit we have just disabled the warning C4786
and prayed for Microsoft to one day start being template friendly.
In fact most of the warnings are produced by STL classes which are
actually standard C++.


About the LNK1004, that could be a real problem...

but...for some reason your attachment didn't follow your email.

Could you please resend the error message  to the list ?


Thanks


    Luis


==========================================================


Joetta Anderson wrote:

> Hello,
> 
> I am a novice itk and VC++ user and was attempting to compile itk on
> Windows 2000 with VC++.  I was following the directions in the "Getting
> Stated with Insight" from the ITKSourceWin32Beta2/InsigtBeta2 file.  I
> ran CMakeSetup for VTK first and then for ITK with USE_VTK and USE_FLTK
> turned on(see attachment for settings in CMakeSetupDialog box).  Upon
> attempting to build the ALL_BUILD project for Debug, the build was
> unable to be completed due to a fatal error LNK1104; there were also
> several warnings: one C4244 warning, four C4146 warnings, and 230 C4786
> warnings(see attachment for Debug info).  I found some documentation
> regarding each of the errors in the MSDN help for VC++ but am not sure
> if it applies to this situation; and if it does apply am not sure what
> to do based on what it says(see attachment).  With regard to the
> warnings received can they be ignored.  Would it have mattered if I had
> built the ALL_BUILD project for Release instead of Debug.
> 
> I would appreciate any feedback you can give me.
> Thanks much,
> J Anderson
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
> 
>