Armenian Knowledge Base  

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

LinkBack Thread Tools
Old 12.10.2001, 19: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, 03:11   #2
acid's Avatar
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Blog Entries: 16
Downloads: 102
Uploads: 34
Reputation: 561 | 6

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, 17:42   #3
Mono's Avatar
Join Date: 10 2001
Location: Yerevan
Posts: 5,466
Blog Entries: 1
Downloads: 1
Uploads: 0
Reputation: 110 | 5

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

Thread Tools

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

All times are GMT. The time now is 04:25.

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