c++visual-c++-6

how to achieve std:map in C++ v60?


I'm trying to implement Dictionary type operation in C++ -V60 build tools. I found map for the alternative for Dictionary generic type in C++. But while trying to implement it i'm facing issue while declaring the map variables.

#include <iterator>
#include <map>
using namespace std;

int main()
{
    // insert single values
    map<int, int> m1;
}

Error:

'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::pair<int const ,int>,std::pair<int const ,int> const &,std::pair<int const ,int> const *,int>' : identifier was truncated to '255' characters in the debug information

Solution

  • You have to disable warning before including header files, e.g.

    #pragma warning(disable: 4786)
    

    Warning 4786 is linker warning, so you have add something like /IGNORE:4786 to list of switches in command line