473,666 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Kindly explain these warnings

Hello All,
I dont get errors but I get warnings though the code runs fine.
Could anyone help me removing these warnings

c:\program files\microsoft visual studio\vc98\inc lude\vector(48) : warning
C4786:
'??0?$vector@V? $basic_string@D U?$char_traits@ D@std@@V?$alloc ator@D@2@@std@@ V
?$allocator@V?$ basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 2
@@std@@QAE@IABV
?$basic_string@ DU?$char_traits @D@std@@V?$allo cator@D@2@@1@AB V?$allocator@V? $
basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 1@@Z' :
identifier was truncated to '255' characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(61) : warning
C4786:
'??0?$vector@V? $basic_string@D U?$char_traits@ D@std@@V?$alloc ator@D@2@@std@@ V
?$allocator@V?$ basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 2
@@std@@QAE@PBV?
$basic_string@D U?$char_traits@ D@std@@V?$alloc ator@D@2@@1@0AB V?$allocator@V? $
basic_string@DU ?$char_traits@D @std@@V?$alloca tor@D@2@@std@@@ 1@@Z' :
identifier was truncated to '255' characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(103 ) : warning
C4786:
'?rbegin@?$vect or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ s
td@@V?$allocato r@V?$basic_stri ng@DU?$char_tra its@D@std@@V?$a llocator@D@2@@s t
d@@@2@@std@@QA
E?AV?$reverse_i terator@PAV?$ba sic_string@DU?$ char_traits@D@s td@@V?$allocato r
@D@2@@std@@V12@ AAV12@PAV12@H@2 @XZ' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(105 ) : warning
C4786:
'?rbegin@?$vect or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ s
td@@V?$allocato r@V?$basic_stri ng@DU?$char_tra its@D@std@@V?$a llocator@D@2@@s t
d@@@2@@std@@QB
E?AV?$reverse_i terator@PBV?$ba sic_string@DU?$ char_traits@D@s td@@V?$allocato r
@D@2@@std@@V12@ ABV12@PBV12@H@2 @XZ' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(107 ) : warning
C4786:
'?rend@?$vector @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d
@@V?$allocator@ V?$basic_string @DU?$char_trait s@D@std@@V?$all ocator@D@2@@std @
@@2@@std@@QAE?
AV?$reverse_ite rator@PAV?$basi c_string@DU?$ch ar_traits@D@std @@V?$allocator@ D
@2@@std@@V12@AA V12@PAV12@H@2@X Z' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(108 ) : warning
C4786:
'?rend@?$vector @V?$basic_strin g@DU?$char_trai ts@D@std@@V?$al locator@D@2@@st d
@@V?$allocator@ V?$basic_string @DU?$char_trait s@D@std@@V?$all ocator@D@2@@std @
@@2@@std@@QBE?
AV?$reverse_ite rator@PBV?$basi c_string@DU?$ch ar_traits@D@std @@V?$allocator@ D
@2@@std@@V12@AB V12@PBV12@H@2@X Z' : identifier was truncated to '255'
characters in the browser information
z:\hexmod17\src \cvariantinfo.h (15) : see reference to class template
instantiation 'std::vector<cl ass std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> >,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) : warning
C4786:
'std::reverse_i terator<std::ba sic_string<char ,std::char_trai ts<char>,std::a l
locator<char> > const
*,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char>
,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> > const &,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> >
const *,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch a
r> >,std::allocato r<std::
basic_string<ch ar,std::char_tr aits<char>,std: :allocator<char > > >::size(void) const' c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) : warning
C4786:
'std::reverse_i terator<std::ba sic_string<char ,std::char_trai ts<char>,std::a l
locator<char> >
*,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> >,std
::basic_string< char,std::char_ traits<char>,st d::allocator<ch ar> >
&,std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char> >
*,int>' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\inc lude\vector(114 ) :
while compiling class-template member function 'unsigned int __thiscall
std::vector<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch a
r> >,std::allocato r<std::
basic_string<ch ar,std::char_tr aits<char>,std: :allocator<char > > >::size(void) const'

CVctrInfoBlk.ob j - 0 error(s), 8 warning(s)

I have compiled in MS VC 6.0 compiler.

Here is header file cvariantinfo.h and the warning occurs exactly at the
line where is declare a static vector<string>

#ifndef CVARIANTINFO_H
#define CVARIANTINFO_H

#include <vector>
#include <string>

class CVariantInfo
{
public:
static vector<uint32> m_VDSVctrEntrie s;
static vector<uint32> m_VDSBlkLength;
static vector<uint32> m_VDSIndex;
static vector<string> m_VDSFileName; //warning occurs here
static uint32 m_ulBlkLength;
};

#endif

Thanks in advance.

Regards,
Naren.

Jul 22 '05 #1
2 2161
"Naren" <na************ *@in.bosch.com> wrote:
Could anyone help me removing these warnings c:\program files\microsoft visual studio\vc98\inc lude\vector(48) : warning
C4786: [...snip...] identifier was truncated to '255' characters in the browser information


Template expansions produce some very long names - not a real problem
though. You can get rid of the warning with:

#pragma warning(disable :4786)

BTW with Visual C++ you can click on an error message and press F1 to get
more information about it ...

David F
Jul 22 '05 #2

"Naren" <na************ *@in.bosch.com> wrote in message
news:bu******** **@ns2.fe.inter net.bosch.com.. .
Hello All,
I dont get errors but I get warnings though the code runs fine.
Could anyone help me removing these warnings

c:\program files\microsoft visual studio\vc98\inc lude\vector(48) : warning
C4786: [SNIP]
Thanks in advance.

Regards,
Naren.


There is nothing you need to worry about. This is just an VC++ feature in
the debug version, telling you that the internal symbols reached the limit
of 255 characters and thus are truncated for the browse-information
database. To turn this annoying stuff off you will have to resort to a
#pragma statement. I don't know the exact syntax by heart but it should be
something like

#pragma warning off (C4786)

Please, check your manual for the correct syntax!!

Regards
Chris
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2199
by: Kylotan | last post by:
I have the following code: def IntToRandFloat(x): """Given a 32-bit integer, return a float in """ x = int(x) x = int(x << 13) ^ x return (1.0-((x*(x*x*15731+789221)+1376312589)&0x7fffffff)/1073741824.0) Basically it's a function directly copied from a C implementation. Now
3
5782
by: Terry Richards | last post by:
mysql 4.1.9-standard how do i find exactly what the warnings are when i only get Query OK, 1 row affected, 1 warning (0.00 sec) :-)^2
30
2166
by: prasanna | last post by:
i will be very thankful if you sent all the errors and warnings regarding to the language C thank you
22
8300
by: John Fisher | last post by:
void f(int p) { } Many (most?) compilers will report that p is unreferenced here. This may not be a problem as f may have to match some common prototype. Typically pointers to functions are involved. For a long time I have used
6
1900
by: pete142 | last post by:
When I compile this code: typedef unsigned char BYTE; BYTE * IpString(unsigned int ip) { static BYTE ipString; ipString = (BYTE) 0xff & (ip >24); ipString = (BYTE) 0xff & (ip >16);
11
1686
by: Siddhu | last post by:
Hai, i am student & i have struck up with the following program's output. Kindly help me to reason out why the output goes as which is given below. THE PROGRAM goes as; #include<iostream.h> #include<conio.h> void main() { int i=0,x={1,2,3,4,5},y={5,4,3,2,1},r={0,0,0,0,0}; while(i++<5)
3
3187
by: gil | last post by:
Hi, I'm trying to find the best way to work with compiler warnings. I'd like to remove *all* warnings from the code, and playing around with the warning level, I've noticed that compiling with /W3 I get warnings that with /W4 are shown as remarks, e.g.: warning #177: variable "Foo" was declared but never referenced ....is displayed as a "remark #177" with /W4. That doesn't fit the
1
1510
by: billiejoex | last post by:
Hi there, into a module of mine I 'warn' a message if a certain situation occurs: def add_anonymous_user(permissions=('r'): if 'w' in p: import warnings warnings.warn("it's not rencommended assigning 'w' permission to anonymous user.", RuntimeWarning, stacklevel=2)
1
2512
by: Robert Singer | last post by:
Platform: winXP, excel 2003 Python 2.5.2 XLWriter 0.4a3 (http://sourceforge.net/projects/pyxlwriter/) Is anyone here using this very nice package, for writing excel files? I'm using it on python 2.5.2. (although it is made for older version of python) and cannot find a way to get rid of this error (code and errors below). Does anyone know how to avoid it ? I would appreciate all help and
0
8449
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8360
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.