SOS -- Failed to disable C4786 warning in Crypto++

View: New views
2 Messages — Rating Filter:   Alert me  

SOS -- Failed to disable C4786 warning in Crypto++

by Bill Chen-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 

My computer environment: Windows XP 32-bit SP2, VC++ 6.0, Crypto++;

 

When I built my project, I always got a bunch of C4786 warnings, I have to disable this warnings, since I use automatic build, lots of this warnings disturbed every developers, so I use  the following directive:

 

#pragma warning(disable: 4768)

 

 

However, this directive seems no effect on Crypto++ code, even though I added the directive in the every .h file, the warning still appear, how can I disable this warnings?
 
The build info:

Generating Code...

warning C4786: 'CryptoPP::AlgorithmImpl<CryptoPP::SimpleKeyingInterfaceImpl<CryptoPP::TwoBases<CryptoPP::Twofish_Info,CryptoPP::SimpleKeyedTransformation<CryptoPP::BlockTransformation> >,CryptoPP::TwoBases<CryptoPP::Twofish_Info,CryptoPP::SimpleKeye

dTransformation<CryptoPP::BlockTransformation> > >,CryptoPP::SimpleKeyingInterfaceImpl<CryptoPP::TwoBases<CryptoPP::Twofish_Info,CryptoPP::SimpleKeyedTransformation<CryptoPP::BlockTransformation> >,CryptoPP::TwoBases<CryptoPP::Twofish_Info,CryptoPP:

:SimpleKeyedTransformation<CryptoPP::BlockTransformation> > > >' : identifier was truncated to '255' characters in the debug information

warning C4786: 'CryptoPP::SimpleKeyingInterfaceImpl<CryptoPP::TwoBases<CryptoPP::Twofish_Info,CryptoPP::SimpleKeyedTransformation<CryptoPP::BlockTransformation> >,CryptoPP::TwoBases<CryptoPP::Twofish_Info,CryptoPP::SimpleKeyedTransformation<CryptoPP

::BlockTransformation> > >' : identifier was truncated to '255' characters in the debug information

…. …

 

 

 

 

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---


Re: SOS -- Failed to disable C4786 warning in Crypto++

by Eugene Zolenko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



> *My computer environment:* Windows XP 32-bit SP2, VC++ 6.0, Crypto++;
>
> When I built my project, I always got a bunch of C4786 warnings, I have to
> disable this warnings, since I use automatic build, lots of this warnings
> disturbed every developers, so I use  the following directive:
>
>    #pragma warning(disable: 4768)
>
> However, this directive seems no effect on Crypto++ code, even though I
> added the directive in the every .h file, the warning still appear, *how can
> I disable this warnings?*

That pragma should appear before template code that generates it (and
don't use push/pop later). Try putting it into precompiled header or
into forced include header. If it already is on the very top then I'm
not sure.

Obligatory useless advice: ditch VC6 already :).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---