Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 21st, 2006, 10:09 PM   #1
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
vector problem

// in class declaration (public)
std::vector<std::string> errorArray;

void Engine::AddError(std::string error)
{
	errorArray.push_back(error);
}

I don't see the problem...
Microsoft Visual Studio 6.0 (the best)

Wierd errors...

--------------------Configuration: SED - Win32 Debug--------------------
Compiling...
SED.cpp
c:\program files\microsoft visual studio\vc98\include\vector(142) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,std::basic_string<char,std::char_traits<char>,std::allocator<char>
 >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,int>' : identifier was truncated to '255' characters in the debug information
        c:\program files\microsoft visual studio\vc98\include\vector(142) : while compiling class-template member function 'void __thiscall std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_st
ring<char,std::char_traits<char>,std::allocator<char> > > >::push_back(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
c:\program files\microsoft visual studio\vc98\include\vector(142) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std
::basic_string<char,std::char_traits<char>,std::allocator<char> > &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,int>' : identifier was truncated to '255' characters in the debug information
        c:\program files\microsoft visual studio\vc98\include\vector(142) : while compiling class-template member function 'void __thiscall std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_st
ring<char,std::char_traits<char>,std::allocator<char> > > >::push_back(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
Linking...

SED.dll - 0 error(s), 2 warning(s)
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old May 21st, 2006, 10:46 PM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,260
Rep Power: 5 grumpy will become famous soon enough
Have a look here

It's a problem with the debugger that comes with VC++; it cannot handle names longer than 255 characters, which means you can't step through the code correctly when debugging. When doing things with non-trivial templates (which includes the STL) it is possible to exceed the limit of 255.

If you are not planning to step through the offending code with a debugger, you can generally ignore the warning. The warning also won't occur when doing release builds (as one attribute of release builds is turning off debugging support).

As an aside, even Microsoft don't claim that VC++ 6.0 is "the best".
grumpy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:03 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC