N
Naren
Hello All,
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\include\vector(48) : warning
C4786:
'??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V
?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2
@@std@@QAE@IABV
?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@ABV?$allocator@V?$
basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(61) : warning
C4786:
'??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V
?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2
@@std@@QAE@PBV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0ABV?$allocator@V?$
basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(103) : warning
C4786:
'?rbegin@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@s
td@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st
d@@@2@@std@@QA
E?AV?$reverse_iterator@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator
@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(105) : warning
C4786:
'?rbegin@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@s
td@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st
d@@@2@@std@@QB
E?AV?$reverse_iterator@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator
@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(107) : warning
C4786:
'?rend@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std
@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
@@2@@std@@QAE?
AV?$reverse_iterator@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(108) : warning
C4786:
'?rend@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std
@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
@@2@@std@@QBE?
AV?$reverse_iterator@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(114) : warning
C4786:
'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::al
const *,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\include\vector(114) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> >,std::allocator<std::
C4786:
'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::al
locator<char> >
*,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std
::basic_string<char,std::char_traits<char>,std::allocator<char> >
&,std::basic_string<char,std::char_traits<char>,std::allocator<char> >
*,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\include\vector(114) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> >,std::allocator<std::
CVctrInfoBlk.obj - 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_VDSVctrEntries;
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.
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\include\vector(48) : warning
C4786:
'??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V
?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2
@@std@@QAE@IABV
?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@ABV?$allocator@V?$
basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(61) : warning
C4786:
'??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V
?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2
@@std@@QAE@PBV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0ABV?$allocator@V?$
basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(103) : warning
C4786:
'?rbegin@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@s
td@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st
d@@@2@@std@@QA
E?AV?$reverse_iterator@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator
@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(105) : warning
C4786:
'?rbegin@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@s
td@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st
d@@@2@@std@@QB
E?AV?$reverse_iterator@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator
@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(107) : warning
C4786:
'?rend@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std
@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
@@2@@std@@QAE?
AV?$reverse_iterator@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(108) : warning
C4786:
'?rend@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std
@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
@@2@@std@@QBE?
AV?$reverse_iterator@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@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<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(114) : warning
C4786:
'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::al
const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> >locator said:,std::basic_string<char,std::char_traits<char>,std::allocator<char> >
const *,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\include\vector(114) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> >,std::allocator<std::
c:\program files\microsoft visual studio\vc98\include\vector(114) : warningbasic_string said:::size(void) const'
C4786:
'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::al
locator<char> >
*,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std
::basic_string<char,std::char_traits<char>,std::allocator<char> >
&,std::basic_string<char,std::char_traits<char>,std::allocator<char> >
*,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\include\vector(114) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> >,std::allocator<std::
basic_string said:::size(void) const'
CVctrInfoBlk.obj - 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_VDSVctrEntries;
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.