Connecting Tech Pros Worldwide Forums | Help | Site Map

using map STL in Microsoft VC++ 6

Medi Montaseri
Guest
 
Posts: n/a
#1: Jul 19 '05
Hope this is a right forum, else route me...

I'm using map STL in Microsoft Visual C++ 6.0 and am getting
warning C4786 which seems to have to do with truncating symbols
as VC++ is building a browser file (unix folks think ctags file).

Is there anyway to tell this compiler to increase your symbol entry
buffer size from 255 to 1000 (or something).

The warning message looks like this

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xtree(200): warning
C4786: '?rbegin@?$_Tree@HU?$pair@$$CBHPAVMessage@@@std@@U _Kfn....etc..etc
....etc' : identifier was truncated to '255' characters in the browser information

Since some of the enteries are being truncated, the browser file seems to be
broken and I can not set breakpoints where I want.

map is very basic, is there something I'm doing wrong, perhaps I need to
make sure my settings are correct or
should I install the compiler in c:\dev instead of 'program files\ etc etc'

Thanks

cheeser
Guest
 
Posts: n/a
#2: Jul 19 '05

re: using map STL in Microsoft VC++ 6



"Medi Montaseri" <montaseri@netscape.net> wrote in message
news:c93c05f6.0310061400.39ec3c07@posting.google.c om...[color=blue]
> Hope this is a right forum, else route me...
>
> I'm using map STL in Microsoft Visual C++ 6.0 and am getting
> warning C4786 which seems to have to do with truncating symbols
> as VC++ is building a browser file (unix folks think ctags file).
>
> Is there anyway to tell this compiler to increase your symbol entry
> buffer size from 255 to 1000 (or something).
>
> The warning message looks like this
>
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xtree(200): warning
> C4786: '?rbegin@?$_Tree@HU?$pair@$$CBHPAVMessage@@@std@@U _Kfn....etc..etc
> ...etc' : identifier was truncated to '255' characters in the browser[/color]
information[color=blue]
>
> Since some of the enteries are being truncated, the browser file seems to[/color]
be[color=blue]
> broken and I can not set breakpoints where I want.
>
> map is very basic, is there something I'm doing wrong, perhaps I need to
> make sure my settings are correct or
> should I install the compiler in c:\dev instead of 'program files\ etc[/color]
etc'[color=blue]
>
> Thanks[/color]

Not quite the right group, but I'll respond since I'm able to help. Include
this:

#ifdef WIN32
#pragma warning(disable: 4786)
#endif

I would suggest microsoft.public.vc.language as a more likely place to get
the answers you need for any further VC++ specific problems.

Regards,
Dave



Unforgiven
Guest
 
Posts: n/a
#3: Jul 19 '05

re: using map STL in Microsoft VC++ 6


Medi Montaseri wrote:[color=blue]
> Hope this is a right forum, else route me...
>
> Since some of the enteries are being truncated, the browser file
> seems to be broken and I can not set breakpoints where I want.[/color]

You can use this to get rid of the warning messages:
#pragma warning(disable:4786)

Which however won't fix the debugger (just as a FYI: it doesn't have
anything to do with the browser file, the debug symbols and the browse file
are two completely different things).

I'm afraid it's an internal limit of the compiler, and you can't get around
it. Visual C++ .Net 2002 and 2003 don't have this limitation, so I'm afraid
upgrading is the only way if you want a fully functional debugger in this
situation. There's been some talk going around about some folks at MS
wanting to make a SP6 for VS6, but I don't know if it'll happen. If it does,
they might fix the issue since it's well-known and often discussed. But I
wouldn't hold your breath.

Sorry.

PS: microsoft.public.vc.* is a better place to ask this sort of thing

--
Unforgiven

A: Top Posting!
Q: What is the most annoying thing on Usenet?

Unforgiven
Guest
 
Posts: n/a
#4: Jul 19 '05

re: using map STL in Microsoft VC++ 6


cheeser wrote:[color=blue]
> #ifdef WIN32
> #pragma warning(disable: 4786)
> #endif[/color]

At the danger of straying further and further of topic:

If you want to put an #ifdef around it, do:
#if defined(_MSC_VER) && _MSC_VER < 1300
#pragma warning(disable:4786)
#endif

_WIN32 is defined by many compilers on the Win32 platform, and only VC6 and
older have this issue.

(1300 is the version number of the compiler, not VC itself. VC6 has compiler
version 12.00, VC7 has 13.00, VC7.1 has 13.10)

--
Unforgiven

A: Top Posting!
Q: What is the most annoying thing on Usenet?

Medi Montaseri
Guest
 
Posts: n/a
#5: Jul 19 '05

re: using map STL in Microsoft VC++ 6


"Unforgiven" <jaapd3000@hotmail.com> wrote in message news:<blspms$fosii$1@ID-136341.news.uni-berlin.de>...[color=blue]
> Medi Montaseri wrote:[color=green]
> > Hope this is a right forum, else route me...
> >
> > Since some of the enteries are being truncated, the browser file
> > seems to be broken and I can not set breakpoints where I want.[/color]
>
> You can use this to get rid of the warning messages:
> #pragma warning(disable:4786)
>
> Which however won't fix the debugger (just as a FYI: it doesn't have
> anything to do with the browser file, the debug symbols and the browse file
> are two completely different things).
>
> I'm afraid it's an internal limit of the compiler, and you can't get around
> it. Visual C++ .Net 2002 and 2003 don't have this limitation, so I'm afraid
> upgrading is the only way if you want a fully functional debugger in this
> situation. There's been some talk going around about some folks at MS
> wanting to make a SP6 for VS6, but I don't know if it'll happen. If it does,
> they might fix the issue since it's well-known and often discussed. But I
> wouldn't hold your breath.
>
> Sorry.
>
> PS: microsoft.public.vc.* is a better place to ask this sort of thing[/color]


Thank you very much.... I'm impressed with this level of commodore....sorry
about the mis-post.
Closed Thread