Maps with VC++6 - funny looking warnings
Hey everyone
I'm having some problems with Visual C++ 6.0 when I try to compile my http server that I' currently writing. Some of my classes use <map>'s, and I suspect thats where the problems are.
This is part of the code:
Code:
#include <map>
using namespace std;
.....
//----------------------------------------------------------------------------------------------------
// Virtual Host class - derived from configuration file
//----------------------------------------------------------------------------------------------------
class VIRTUALHOST
{
public:
string Name; // Name of this virtual host (ie, RateMyPoo)
string HostName; // Internet Address of host (www.ratemypoo.com)
string IndexFiles[10]; // Files that will be used as auto indexes of folders (index.htm)
string Root; // Root folder of files for this VH (ie, c:\RateMyPoo)
string Logfile; // Path/name of log file (C:\RateMyPoo\logfile.log)
//VIRTUALHOST(string ConfFile); // Read in virtual hosts from files
};
//----------------------------------------------------------------------------------------------------
// Virtual Host Index (VHI) class. Keeps an index of all the Virtual hosts
//----------------------------------------------------------------------------------------------------
class VirtualHostIndex
{
public:
int NumberOfHosts;
map <char *, VIRTUALHOST> Host; // Map Internet address to appropriate virtual host
};
This is a list of some of the 19 warning messages I get:
Code:
C:\Documents and Settings\Administrator\My Documents\Projects\SWS01\beta\main.cpp(205) : warning C4786: 'std::pair<std::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kf
n,std::less<char *>,std::allocator<VIRTUALHOST> >::const_iterator,std::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,std::allocator<VIRTUALHOST> >
::const_iterator>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<char *,std::pair<char * const,char *>,std::map<char *,char *,std::less<char *>,std::allocator<char *> >::_Kfn,std::less<char *>,std::allocator<char *> >::~
_Tree<char *,std::pair<char * const,char *>,std::map<char *,char *,std::less<char *>,std::allocator<char *> >::_Kfn,std::less<char *>,std::allocator<char *> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,std::allocat
or<VIRTUALHOST> >::~_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,std::allocator<VIRTUALHOST> >' : identifier was truncated to '255' characters in
the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<char *,std::pair<char * const,char *>,std::map<char *,char *,std::less<char *>,std::allocator<char *> >::_Kfn,std::less<char *>,std::allocator<char *> >::_
Tree<char *,std::pair<char * const,char *>,std::map<char *,char *,std::less<char *>,std::allocator<char *> >::_Kfn,std::less<char *>,std::allocator<char *> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,std::allocat
or<VIRTUALHOST> >::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,std::allocator<VIRTUALHOST> >' : identifier was truncated to '255' characters in
the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(236) : warning C4786: '__ehhandler$?insert@?$_Tree@PADU?$pair@QADVVIRTUALHOST@@@std@@U_Kfn@?$map@PADVVIRTUALHOST@@U?$less@PAD@std@@V?$allocator@VVIRTUALHOST@@@3@@2@U?$less@PAD@2@V?$allocato
r@VVIRTUALHOST@@@2@@std@@QAE?AU?$pair@Viterator@?$_Tree@PADU?$pair@QADVVIRTUALHOST@@@std@@U_Kfn@?$map@PADVVIRTUALHOST@@U?$less@PAD@std@@V?$allocator@VVIRTUALHOST@@@3@@2@U?$less@PAD@2@V?$allocator@VVIRTUALHOST@@@2@@std@@_N@2@ABU?$pair@QADVVIRTUALHOST
@@@2@@Z' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(236) : warning C4786: '__unwindfunclet$?insert@?$_Tree@PADU?$pair@QADVVIRTUALHOST@@@std@@U_Kfn@?$map@PADVVIRTUALHOST@@U?$less@PAD@std@@V?$allocator@VVIRTUALHOST@@@3@@2@U?$less@PAD@2@V?$allo
cator@VVIRTUALHOST@@@2@@std@@QAE?AU?$pair@Viterator@?$_Tree@PADU?$pair@QADVVIRTUALHOST@@@std@@U_Kfn@?$map@PADVVIRTUALHOST@@U?$less@PAD@std@@V?$allocator@VVIRTUALHOST@@@3@@2@U?$less@PAD@2@V?$allocator@VVIRTUALHOST@@@2@@std@@_N@2@ABU?$pair@QADVVIRTUAL
HOST@@@2@@Z$0' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\utility(21) : warning C4786: 'std::pair<std::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,s
td::allocator<VIRTUALHOST> >::iterator,bool>::pair<std::_Tree<char *,std::pair<char * const,VIRTUALHOST>,std::map<char *,VIRTUALHOST,std::less<char *>,std::allocator<VIRTUALHOST> >::_Kfn,std::less<char *>,std::allocator<VIRTUALHOST> >::iterator,bool
>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(512) : warning C4786: '__unwindfunclet$?_Insert@?$_Tree@PADU?$pair@QADVVIRTUALHOST@@@std@@U_Kfn@?$map@PADVVIRTUALHOST@@U?$less@PAD@std@@V?$allocator@VVIRTUALHOST@@@3@@2@U?$less@PAD@2@V?$all
ocator@VVIRTUALHOST@@@2@@std@@IAE?AViterator@12@PAU_Node@12@0ABU?$pair@QADVVIRTUALHOST@@@2@@Z$0' : identifier was truncated to '255' characters in the debug information
I can't even read this stuff, and most of it talks about included files that I've never touched before (and don't intend to).
I've heard that Visual C++ 6.0 isn't very good with templates, maybe thats what the problem is? If so, what can/should I do to stop these warnings, as I fear they may be changing some of my code (because it still compiles and runs, but doesn't seem to work properly).
Any help on this matter is most appreciated :)