[Insight-users] Re: On Warnings I had : Warning 4786 in VC++
Luis Ibanez
luis . ibanez at kitware . com
Fri, 01 Aug 2003 16:29:00 -0400
Hi Nagarajan,
This warnings in VC++ are 'normal'.
They are totally unrelated to ITK,
You will get them just by using STL
in your application and compiling for
Debug.
E.g. try instantiating a std::vector<float>.
The problem is due to a limitation of
255 characters in the symbol names used
by VC++ for debugging.
STL names of fully instantiated classes
easily surpass this limit.
You can simply disable the warning by
placing the following pragma at the
beginning of your .cxx files:
// Disable warning for long symbol names in this file only
#ifdef _MSC_VER
#pragma warning ( disable : 4786 )
#endif
Regards,
Luis
---------------------------------
Nagarajan wrote:
> Hi Luis Ibanez
>
> I felt I could send you the warnings from the compilation for what it is
> worth. It is the zip file. Did I do anything wrong?
>
> Kind Regards
>
> Raman Nagarajan
> raman_nagarajan at vsnl . net