On 11 Nov 2006 03:16:52 -0800, "Markus" <der_weise_riese@web.de>
wrote:
Hi,
there are 4 warnings when compiling the following code under VC++
6:
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> data;
return 0;
}
The compiler says: "identifier was truncated to '255' characters
in the debug information"
I do not think that this is a serious problem but I would like to
get rid of these warning. If I include
#pragma warning(disable:4786)
there are still 2 warnings.
Is there a possibility to limit the maximum size of a string or
anything else to disable these warnings?
If possible, upgrade to a newer version of the compiler. MS does
produce some limited free versions known as "Express Editions". If
you must stay with VC6, you will have to use the #pragma in
multiple places, because it tends to be ignored. See also this KB
search:
http://support.microsoft.com/search/default.aspx?query=c4786
--
Doug Harrison
Visual C++ MVP
main-function. If it stands above the headers there are 0 warnings.