I decided to try creating a map with microsoft visual C++ 6. When building
this small app I get 95 warnings which make no sense to me. Anybody else
see this before?
Thanks,
// CODE SAMPLE
#include <map>
#include <string>
int main()
{
std::map<std::string, std::string> m;
m["123"] = "Hello";
return 0;
}
// WARNINGS (Partial)
Compiling...
maptest.cpp
c:\program files\microsoft visual studio\vc98\include\xtree(118) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r> ,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r> > const ,
std::basic_string<char,std::char_traits<char>,std: :allocator<char> >,std::map<std::basic_string<char,std::char_traits <char>,std::allocator<char,std::basic_string<char,std::char_traits<char>,st d::allocator<char>,std::less<std::basic_string<cha
r,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_ traits<char>,std::allocato
r<char> > >::_Kfn,std::less<std::basic_string<char,std::char _traits<char>,std::allocat
or<char> > >,std::allocator<std::basi
c_string<char,std::char_traits<char>,std::allocato r<char> > > >' :
identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46) : see
reference to class template instantiation
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r> >,std::pair<std::basic_string<char,std::char_trait s<
char>,std::allocator<char> > const
,std::basic_string<char,std::char_traits<char>,std ::allocator<char> >,std::map<std::basic_string<char,std::char_traits <char>,std::allocator<char,std::basic_string<char,std::char_traits<char>,st d::allocator<cha
which generated 2 2257
in my understanding, these error messages are thrown by the compiler when
you are trying to generate
a debug version of your code or you are trying to generate a browse
information file for your code.
This is due to the restriction in either version of code to limit the length
of symbols to 255 chars.
I suppose, It doesn't make sense to anyone either. Its just to warn you.
Thanks,
Ashish
"Weddick" <we*****@comcast.net> wrote in message
news:QDSvc.42210$eY2.15628@attbi_s02... I decided to try creating a map with microsoft visual C++ 6. When
building this small app I get 95 warnings which make no sense to me. Anybody else see this before?
Thanks,
// CODE SAMPLE #include <map> #include <string>
int main() {
std::map<std::string, std::string> m;
m["123"] = "Hello";
return 0; }
// WARNINGS (Partial)
Compiling... maptest.cpp c:\program files\microsoft visual studio\vc98\include\xtree(118) : warning C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r>
,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const , std::basic_string<char,std::char_traits<char>,std: :allocator<char> >
,std::map<std::basic_string<char,std::char_traits <char>,std::allocator<char,std::basic_string<char,std::char_traits<char>,st d::allocator<char>,std::less<std::basic_string<cha r,std::char_traits<char>,std::allocator<char> >
,std::allocator<std::basic_string<char,std::char_ traits<char>,std::allocato r<char> > >
::_Kfn,std::less<std::basic_string<char,std::char _traits<char>,std::allocat or<char> > >,std::allocator<std::basi c_string<char,std::char_traits<char>,std::allocato r<char> > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\map(46) :
see reference to class template instantiation
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> >,std::pair<std::basic_string<char,std::char_trait s< char>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std ::allocator<char> >
,std::map<std::basic_string<char,std::char_traits <char>,std::allocator<char,std::basic_string<char,std::char_traits<char>,st d::allocator<cha
which generated
Ashish kumar wrote: I suppose, It doesn't make sense to anyone either. Its just to warn you.
Weddick wrote: c:\program files\microsoft visual studio\vc98\include\xtree(118) :
warning C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r>
Always use http://groups.google.com to search such error messages before
posting them. You will quickly find the #pragma required to get rid of the
silly warning.
--
Phlip http://industrialxp.org/community/bi...UserInterfaces This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Enos Meroka |
last post by:
Hallo,
I am a student doing my project in the university.. I have been trying
to compile the program using HP -UX aCC compiler, however I keep on
getting the following errors.
...
|
by: Mike L |
last post by:
Should the command call "using" be before or after my namespace?
**AFTER**
namespace DataGridBrowser
{
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using...
|
by: xzzy |
last post by:
I was wondering why we have to have
using System.Data
using System.Configuration
using etc....
why are they not all lumped into one 'using'?
In other words, is there a best way to use...
|
by: pmud |
last post by:
Hi,
I need to use an Excel Sheet in ASP.NET application so that the users can
enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever
the USER ENETRS needs to go to the...
|
by: acb |
last post by:
Hi,
I wrote a DLL Component (using Visual Studio 2005) and managed to
include it into a C# Console application.
I am now trying to include this component into a Web project. I copy
the DLL...
|
by: Metal2You |
last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that
accesses a Sybase database back end. We're using Sybase SQL Anywhere
9.0.2.3228. I have installed and registered the Sybase...
|
by: mg |
last post by:
I'm migrating from VB6 and have a question about using 'Using' and the
best way to use it.
Here is a example of a small bit of code:
dbConx("open")
Using CN
Dim CMD As New OleDbCommand(sSQL,...
|
by: Eugene Anthony |
last post by:
The problem with my coding is that despite removing the records stored
in the array list, the rptPages repeater
control is still visible. The rptPages repeater control displayes the
navigation...
|
by: JDeats |
last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting
and decrypting a file.
http://support.microsoft.com/kb/307010
In .NET 2.0 this approach is not fully supported (a .NET 2.0...
|
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= |
last post by:
Greetings! I was researching AJAX to provide a solution to displaying status
messages while a long process executed. I found several examples online and
was able to use their code to get a quick...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |