|
-
Apr 26th, 2002, 05:55 PM
#1
STL Warnings (debugging symbol exceeds 255 chars)
Im using an stl map, and storing an stl string inside of it. Unfortunatly, this causes the debug symbol length to exceed 255 characters, which generates the compiler warning C4786. I want this to disappear. I have tried #pragma warning(disable:4786), which has no effect, whatsoever. Am i doing something wrong, or do I need to write my own container classes?
Z.
[edit]
MSVC 6
-
Apr 27th, 2002, 04:45 AM
#2
Monday Morning Lunatic
Disable the warning first, before ANY code gets compiled. Note that you need it for every .cpp file (i.e. if a header is included by everything, put it in there).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 27th, 2002, 05:55 AM
#3
and you need to do it very early, as it only takes effect from the point on where you declare it.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 27th, 2002, 12:36 PM
#4
Ahhhh, thank you! It was like doing a scavenger hunt in the dark trying to look for real errors in my build with all of those 5 line warnings.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|