Public Group

# Errors in VC's header files? (xstring)

This topic is 4852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

My compiler is flagging errors in the VC include file <xstring>:
c:\program files\microsoft visual studio 8\vc\include\xstring(534) : error C2065: '_Myfirstiter' : undeclared identifier
c:\program files\microsoft visual studio 8\vc\include\xstring(529) : while compiling class template member function 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_Elem,_Traits,_Ax>::_Has_debug_it)'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
c:\program files\microsoft visual studio 8\vc\include\xstring(2057) : see reference to class template instantiation 'std::basic_string<_Elem,_Traits,_Ax>' being compiled
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]


I did a search in that include file for the undeclared identifier _Myfirstiter, and surely enough, I can't find where it's defined. Can anyone even guess why this error occurs? If it's of any help, I got this error while trying to compile ICU, apparently a utility for dealing with international characters in your programs. They give a link to a solution file that contains all code necessary, but it was build in VC++ 7.1. I have 8.0 beta 2 (I also have 6.0, but it's quite outdated, so I speculate I will get more compilation errors there). I received a ton of warnings (mostly about use of deprecated functions) and a couple errors. If anyone knows ICU, is there a way to get around the errors I'm getting?

##### Share on other sites
The error is not in xstring, it just looks like it because the class is templated.

##### Share on other sites
Quote:
 Original post by CTarThe error is not in xstring, it just looks like it because the class is templated.

Is it some sort of error in the VC include files, or does the error have its roots in the project?

1. 1
Rutin
36
2. 2
3. 3
4. 4
5. 5

• 11
• 15
• 12
• 14
• 9
• ### Forum Statistics

• Total Topics
633353
• Total Posts
3011485
• ### Who's Online (See full list)

There are no registered users currently online

×