Truncated Name warning (C4503) in a file specified in the VC 8 directory!

  • Thread starter Thread starter csharpdevp
  • Start date Start date
C

csharpdevp

I tried building a c++ project in VS 2005, and about 300 warnings, all
of the following nature:

warning C4503: 'std::_Tree<_Traits>::_Min' : decorated name length
exceeded, name was truncated

File: C:\Program Files\Microsoft Visual Studio 8\VC\include\vector
Line: 47

I haven't studied this file still. Although, since it's packaged with
VS 2005, I don't see why there should be a problem. Any suggestions?

You can find the standard vector header file in a location similar to
the above path on your machine.

Thank you
 
I tried building a c++ project in VS 2005, and about 300 warnings, all
of the following nature:

warning C4503: 'std::_Tree<_Traits>::_Min' : decorated name length
exceeded, name was truncated

File: C:\Program Files\Microsoft Visual Studio 8\VC\include\vector
Line: 47

I haven't studied this file still. Although, since it's packaged with
VS 2005, I don't see why there should be a problem. Any suggestions?

Hi,
You can safely disable this warning by specifying #pragma
warning(disable:4503); before your include files StdAfx.h is a good place
for this.

this warning occurrs when the decorated name of a symbol is larger than 255
bytes. the debugger will truncate this to 255 byte for display. There is
nothing you can do about it.
This frequently happens with template libraries because they have large
mangled names.

These warnings are harmless.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
Bruno van Dooren said:
Hi,
You can safely disable this warning by specifying #pragma
warning(disable:4503); before your include files StdAfx.h is a good place
for this.

this warning occurrs when the decorated name of a symbol is larger than
255 bytes. the debugger will truncate this to 255 byte for display. There
is nothing you can do about it.

Actually, in VC7 and later, the limit was increased to 4096 characters, but
it's still pretty easy to exceed it with nested template instantiations.

-cd
 
Thank you for the help. Could this however be responsible for any
linker errors?

In general, no.

If you're mixing modules compiled with VC6 (or earlier) with modules
compiled with VC7 (or later) then this could lead to linker errors since
names would have been truncated at different lengths by the older and newer
compilers.

-cd
 
Back
Top