Jump to content
  • Advertisement
Sign in to follow this  
v0dKA

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.

If you intended to correct an error in the post then please contact us.

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 this post


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

Share this post


Link to post
Share on other sites
Quote:
Original post by CTar
The 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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!