Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 12.10.2001, 20:13   #1
Младенец
 
Join Date: 10 2001
Location: Republic Of Armenia
Posts: 20
Downloads: 0
Uploads: 0
Reputation: 0 | 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 ]
Reply With Quote
Old 13.10.2001, 04:11   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
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
Reply With Quote
Old 27.10.2001, 18:42   #3
Moderator
 
Mono's Avatar
 
Join Date: 10 2001
Location: Yerevan
Posts: 5,466
Downloads: 1
Uploads: 0
Blog Entries: 1
Reputation: 110 | 5
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 With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 11:19.


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