I dont get errors but I get warnings though the code runs fine.
Could anyone help me removing these warnings
c:\program files\microsoft visual studio\vc98\inc lude\vector(48) : warning
C4786:
'??0?$vector@V? $basic_string@D U?$char_traits@ D@std@@V?$alloc ator@D@2@@std@@ V
?$allocator@V?$ basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 2
@@std@@QAE@IABV
?$basic_string@ DU?$char_traits @D@std@@V?$allo cator@D@2@@1@AB V?$allocator@V? $
basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 1@@Z' :
identifier was truncated to '255' characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(61) : warning
C4786:
'??0?$vector@V? $basic_string@D U?$char_traits@ D@std@@V?$alloc ator@D@2@@std@@ V
?$allocator@V?$ basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 2
@@std@@QAE@PBV?
$basic_string@D U?$char_traits@ D@std@@V?$alloc ator@D@2@@1@0AB V?$allocator@V? $
basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 1@@Z' :
identifier was truncated to '255' characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(103 ) : warning
C4786:
'?rbegin@?$vect or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ s
td@@V?$allocato r@V?$basic_stri ng@DU?$char_tra its@D@std@@V?$a llocator@D@2@@s t
d@@@2@@std@@QA
E?AV?$reverse_i terator@PAV?$ba sic_string@DU?$ char_traits@D@s td@@V?$allocato r
@D@2@@std@@V12@ AAV12@PAV12@H@2 @XZ' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(105 ) : warning
C4786:
'?rbegin@?$vect or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ s
td@@V?$allocato r@V?$basic_stri ng@DU?$char_tra its@D@std@@V?$a llocator@D@2@@s t
d@@@2@@std@@QB
E?AV?$reverse_i terator@PBV?$ba sic_string@DU?$ char_traits@D@s td@@V?$allocato r
@D@2@@std@@V12@ ABV12@PBV12@H@2 @XZ' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(107 ) : warning
C4786:
'?rend@?$vector @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d
@@V?$allocator@ V?$basic_string @DU?$char_trait s@D@std@@V?$all ocator@D@2@@std @
@@2@@std@@QAE?
AV?$reverse_ite rator@PAV?$basi c_string@DU?$ch ar_traits@D@std @@V?$allocator@ D
@2@@std@@V12@AA V12@PAV12@H@2@X Z' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(108 ) : warning
C4786:
'?rend@?$vector @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d
@@V?$allocator@ V?$basic_string @DU?$char_trait s@D@std@@V?$all ocator@D@2@@std @
@@2@@std@@QBE?
AV?$reverse_ite rator@PBV?$basi c_string@DU?$ch ar_traits@D@std @@V?$allocator@ D
@2@@std@@V12@AB V12@PBV12@H@2@X Z' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) : warning
C4786:
'std::reverse_i terator<std::ba sic_string<char ,std::char_trai ts<char>,std::a l
locator<char> > const
*,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char>
,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> > const &,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> >
const *,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch a
r> >,std::allocato r<std::
basic_string<ch ar,std::char_tr aits<char>,std: :allocator<char > > >::size(void) const' c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) : warning
C4786:
'std::reverse_i terator<std::ba sic_string<char ,std::char_trai ts<char>,std::a l
locator<char> >
*,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> >,std
::basic_string< char,std::char_ traits<char>,st d::allocator<ch ar> >
&,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> >
*,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch a
r> >,std::allocato r<std::
basic_string<ch ar,std::char_tr aits<char>,std: :allocator<char > > >::size(void) const'
CVctrInfoBlk.ob j - 0 error(s), 8 warning(s)
I have compiled in MS VC 6.0 compiler.
Here is header file cvariantinfo.h and the warning occurs exactly at the
line where is declare a static vector<string>
#ifndef CVARIANTINFO_H
#define CVARIANTINFO_H
#include <vector>
#include <string>
class CVariantInfo
{
public:
static vector<uint32> m_VDSVctrEntrie s;
static vector<uint32> m_VDSBlkLength;
static vector<uint32> m_VDSIndex;
static vector<string> m_VDSFileName; //warning occurs here
static uint32 m_ulBlkLength;
};
#endif
Thanks in advance.
Regards,
Naren.