Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters

Reply
 
Thread Tools

Abnormally huge errors qty.
Old 12.10.2001, 19:13   #1
Младенец
 
Join Date: 10 2001
Location: Republic Of Armenia
Posts: 20
Rep Power: 0
Post Abnormally huge errors qty.

What the heal VC++ 6.0 compiler generates 99 warnings on meeting the following declaration

map<string, double> table;

Thanks. The answer was right. The problem concerns 4786 warning. Thanks again.

<IMG SRC="smile.gif" border="0">

[ October 14, 2001: Message edited by: Alexandr ]
__________________
Do not accept anything, besides the perfect.

Old 13.10.2001, 03:11   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Blog Entries: 16
Rep Power: 7
Post

If this warnings are concerning to number 4786 then it is normal, because in debug mode, lines allowed to be only 255 character long, but in most of cases STL expressions are so nasty that causing lines longer than 255 chars and compiler is just trancating those lines so you are no more allowed to debug them. To avoid this warning simply write the following line at the beginnig of your declaration:

#pragma warning (disable : 4786)

If this is not your case please state warning number.

Hope it helps<BR>acid

Old 27.10.2001, 17:42   #3
Moderator
 
Mono's Avatar
 
Join Date: 10 2001
Location: Yerevan
Posts: 5,466
Blog Entries: 1
Rep Power: 6
Post

Thank you Acid for this advise. <BR>I also noticed that when i use theSTL i have huge quantity of warnings. Now i know why.
__________________
---------------
Արատտայի ու Խալդեյի հովանավոր .
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 08:05.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.