Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

gerbenvanderlubbe

Realy irritating this warning

This topic is 5957 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

When I use: std::queue < std::string> TEST in C++ the program ''ll give an error a couple of miles long! How can I solve this (this is very irritating, especially when you''re searching for an error somewere in the long, long list) Gerben

Share this post


Link to post
Share on other sites
Advertisement
The error(s) say:

e:\3d shooter\loadlevel.h(27) : warning C4786: ''?Split@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allo
cator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@2@@2@PAD@Z'' : identifier was truncated to ''255'' characters in the browser information
e:\programs\vc98\include\deque(184) : warning C4786: ''?$reverse_iterator@Vconst_iterator@?$deque@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@@V?$bas
ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@ABV43@PBV43@H'' : identifier was truncated to ''255'' characters in the browser information
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(197) : warning C4786: ''??0?$deque@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
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(209) : warning C4786: ''??0?$deque@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@Vconst_iterator@01@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
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(231) : warning C4786: ''?rbegin@?$deque@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@Viterato
r@?$deque@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@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@AAV43@PAV43@H@2@XZ'' : identifier w
as truncated to ''255'' characters in the browser information
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(233) : warning C4786: ''?rbegin@?$deque@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@Vconst_i
terator@?$deque@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@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@ABV43@PBV43@H@2@XZ'' : identi
fier was truncated to ''255'' characters in the browser information
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(235) : warning C4786: ''?rend@?$deque@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@Viterator@
?$deque@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@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@AAV43@PAV43@H@2@XZ'' : identifier was
truncated to ''255'' characters in the browser information
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(236) : warning C4786: ''?rend@?$deque@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@Vconst_ite
rator@?$deque@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@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@ABV43@PBV43@H@2@XZ'' : identifi
er was truncated to ''255'' characters in the browser information
e:\programs\vc98\include\queue(22) : see reference to class template instantiation ''std::deque,class std::allocator >,class std::allocatortd::char_traits,class std::allocator > > >'' being compiled
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(28) : warning C4786: ''??0?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@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@@2@@std@@QAE@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
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(31) : warning C4786: ''?get_allocator@?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_tr
aits@D@std@@V?$allocator@D@2@@std@@@2@@2@@std@@QBE?AV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ'' : identifier was truncated to ''255'' characters in the browser information
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(36) : warning C4786: ''?front@?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@s
td@@V?$allocator@D@2@@std@@@2@@2@@std@@QAEAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ'' : identifier was truncated to ''255'' characters in the browser information
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(38) : warning C4786: ''?front@?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@s
td@@V?$allocator@D@2@@std@@@2@@2@@std@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ'' : identifier was truncated to ''255'' characters in the browser information
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(40) : warning C4786: ''?back@?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@st
d@@V?$allocator@D@2@@std@@@2@@2@@std@@QAEAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ'' : identifier was truncated to ''255'' characters in the browser information
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(42) : warning C4786: ''?back@?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@st
d@@V?$allocator@D@2@@std@@@2@@2@@std@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ'' : identifier was truncated to ''255'' characters in the browser information
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\queue(45) : warning C4786: ''?push@?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@st
d@@V?$allocator@D@2@@std@@@2@@2@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z'' : identifier was truncated to ''255'' characters in the browser information
e:\3d shooter\loadlevel.h(40) : see reference to class template instantiation ''std::queue,class std::allocator >,class std::dequetraits,class std::allocator >,class std::allocator,class std::allocator > > > >'' being compiled
e:\programs\vc98\include\deque(208) : warning C4786: ''std::reverse_iterator,std::allocator >,std::allocator,std::allocator > > >::cons
t_iterator,std::basic_string,std::allocator >,std::basic_string,std::allocator > const &,std::basic_string,std::allocator > const *,int>'' : identif
ier was truncated to ''255'' characters in the debug information
e:\programs\vc98\include\deque(207) : while compiling class-template member function ''__thiscall std::deque,std::allocator >,std::allocator,std
::allocator > > >::~std::deque,std::allocator >,std::allocator,std::allocator > > >(void)''
e:\programs\vc98\include\deque(208) : warning C4786: ''std::reverse_iterator,std::allocator >,std::allocator,std::allocator > > >::iter
ator,std::basic_string,std::allocator >,std::basic_string,std::allocator > &,std::basic_string,std::allocator > *,int>'' : identifier was truncated
to ''255'' characters in the debug information
e:\programs\vc98\include\deque(207) : while compiling class-template member function ''__thiscall std::deque,std::allocator >,std::allocator,std
::allocator > > >::~std::deque,std::allocator >,std::allocator,std::allocator > > >(void)''
e:\3d shooter\loadlevel.h(44) : warning C4786: ''__ehhandler$?Split@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@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@@2@@2@PAD@Z'' : identifier was truncated to ''255'' characters in the debug information
e:\3d shooter\loadlevel.h(44) : warning C4786: ''__unwindfunclet$?Split@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_trait
s@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@2@@2@PAD@Z$3'' : identifier was truncated to ''255'' characters in the debug information
e:\3d shooter\loadlevel.h(44) : warning C4786: ''__unwindfunclet$?Split@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_trait
s@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@2@@2@PAD@Z$2'' : identifier was truncated to ''255'' characters in the debug information
e:\3d shooter\loadlevel.h(44) : warning C4786: ''__unwindfunclet$?Split@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_trait
s@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@2@@2@PAD@Z$1'' : identifier was truncated to ''255'' characters in the debug information
e:\3d shooter\loadlevel.h(44) : warning C4786: ''__unwindfunclet$?Split@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$queue@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$deque@V?$basic_string@DU?$char_trait
s@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@2@@2@PAD@Z$0'' : identifier was truncated to ''255'' characters in the debug information
warning C4786: ''std::queue,std::allocator >,std::deque,std::allocator >,std::allocator,std::allocat
or > > > >::~queue,std::allocator >,std::deque,std::allocator >,std::allocator,std::allocator
> > > >'' : identifier was truncated to ''255'' characters in the debug information
e:\programs\vc98\include\queue(25) : warning C4786: ''std::queue,std::allocator >,std::deque,std::allocator >,std::allocatorr,std::char_traits,std::allocator > > > >::queue,std::allocator >,std::deque,std::allocator >,std::allocatortd::char_traits,std::allocator > > > >'' : identifier was truncated to ''255'' characters in the debug information
e:\programs\vc98\include\queue(30) : warning C4786: ''std::queue,std::allocator >,std::deque,std::allocator >,std::allocatorr,std::char_traits,std::allocator > > > >::empty'' : identifier was truncated to ''255'' characters in the debug information
e:\programs\vc98\include\queue(34) : warning C4786: ''std::queue,std::allocator >,std::deque,std::allocator >,std::allocatorr,std::char_traits,std::allocator > > > >::front'' : identifier was truncated to ''255'' characters in the debug information
e:\programs\vc98\include\deque(208) : warning C4786: ''std::deque,std::allocator >,std::allocator,std::allocator > > >::~dequehar,std::char_traits,std::allocator >,std::allocator,std::allocator > > >'' : identifier was truncated to ''255'' characters in the debug information
e:\programs\vc98\include\deque(191) : warning C4786: ''std::deque,std::allocator >,std::allocator,std::allocator > > >::dequear,std::char_traits,std::allocator >,std::allocator,std::allocator > > >'' : identifier was truncated to ''255'' characters in the debug information

Share this post


Link to post
Share on other sites
That isn''t an error, that is a warning - actually multiple warnings. It is caused by a limitation of the length of the browse symbol names in VC6 (255 characters.)

To get rid of these warnings do this:


#pragma warning (disable : 4786)
#include <queue>


The pragma must come before the inclusion of the STL header.


// file A
#include <queue>

// file B
#include "A.h"
#pragma warning (disable : 4786)
#include <queue>

// warnings will still occur because file A includes queue and
// File A is included before the #pragma statement.


Hope this helps.






Dire Wolf
www.digitalfiends.com

Share this post


Link to post
Share on other sites

  • 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!