Problem MS Visual C++ Pragma 4786

I'm using Microsoft Visual C++
My program uses several standard library templates which produces symbols (classes, types, etc) with very long names.

The compiler prints out warnings (not errors) about these names.  There is no harm in these warnings but it makes it impossible to find other warnings.

I tried dissabling the warning using:
#pragma warning(disable : 4786)

but it seems to have no effect.  I have possitioned the pragma everywhere, in header files, in source code, before the STL includes and still have not gotten rid of the warning.

Am I doing something wrong or is this a bug in MSC?
LVL 22
nietodAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nate091597Commented:
   In general, there is a known bug when mixing warning pragmas with templates.  However, 4786 is one that actually works for me.  What version of the compiler are you using?

0
nietodAuthor Commented:
Good (bad) to know there are bugs in this area and that this MIGHT be one.  
I'm using version 5.0 on Windows 95.  The message indicates that the symbols are too long for the debugger and were truncated.  

Is it possible that you don't get the problem because you don't create debug versions?  Or is that you are lucky and I'm not?

I should have mentioned that I don't get the warnings every time.  I think this might have to do with incremental compilation.  i.e. it doesn't print warnings unless it has to recompile a section of code.
0
yonatCommented:
I have this problem too - sometimes. I was told that installing service pach 2 may help.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

nietodAuthor Commented:
Yonat, your comment raises an important question!  Does service patch 2 fix the problem, or at least did it for you?  If so, how do I get it?
0
yonatCommented:
I don't know. I'm still waiting for that CD.
0
nate091597Commented:
I must be lucky, because I do create debug versions
0
davmarcCommented:
FYI: VisualStudio SP2 can be also downloaded from www.microsoft.com/visualc

Davide Marcato.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nietodAuthor Commented:
I'll have to download and install before I can tell if it fixes the problem so it will be a couple of days until I can grade your answer.
If it works it seems to me that at least some points should go to yonat, but I don't think that can be arranged.
0
yonatCommented:
It's OK, I'v already got my share :-)
0
davmarcCommented:
I agree on the points for yonat, but that's not possible to divide quality points among several experts...you could post another question just for yonat to answer.
Complex issue for E-E though!

Davide Marcato.
0
nietodAuthor Commented:
I'm still waiting for the service pack to arrive.  haven't forgotten about the question though.
0
davmarcCommented:
nietod,
if the delay is so exaggerate, why don't you download it from Microsoft's Web site?

Davide Marcato.
0
nietodAuthor Commented:
The service pack I need would take hours to download (I tried).  Even if I would want to spend the time, there is little chance of maintaining an internet connection that long.  I ordered a copy, hopefully it will come soon.  Hopefully it will fix the problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.