Results 1 to 4 of 4

Thread: STL Warnings (debugging symbol exceeds 255 chars)

  1. #1
    Zaei
    Guest

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4
    Zaei
    Guest
    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
  •  



Click Here to Expand Forum to Full Width