I’m getting an error from gcc 3.4.4 when compiling dll.cpp.

 

misc.h: In member function ‘const T& CryptoPP::Singleton<T, F, instance>::Ref(…) const [with T = CryptoPP::DL_KeyAgreementAlgroithm_DH<CryptoPP::Integer, CryptoPP::NoCofactorMultiplication>, F – CryptoPP::NewObject< CryptoPP::DL_KeyAgreementAlgroithm_DH<CryptoPP::Integer, CryptoPP::NoCofactorMultiplication> >. int instance = 0]’:

dh,h:85:   instantiated from ‘const CryptoPP::DL_KeyAgreementAlgroithm<typename GROUP_PARAMETERS::Element>& CryptoPP::DH_Domai<GROUP_PARAMETERS, COFACTOR_OPTION>::GetKeyAgrrementAlgorithm() const [with GROUP_PARAMETERS =  CryptoPP::DL_GroupParameters_GF_DefaultSafePrime, COFACTOR_OPTION = CryptoPP:: NoCofactorMultiplication]’

dh.h:92:    instantiated from here

misc.h:95: warning: sorry: semantics of inline function static data `char s_objectState’ are wrong (you’ll wind up with multiple copies)

misc.h:95: warning: you can work around this by removing the initializer

 

This also shows up when compiling ec2n.cpp and many other files.

 

Is this warning a real problem or can it be ignored?

 

 

Thanks

 

Mark Johnson

 

 

Output of uname –a

 

AIX aixtest 3 4 000719634C00

 

Output of gcc –v

 

Reading specs from /usr/local/lib/gcc/powerpc-ibm-aix4.3.3.0/3.4.4/specs

Configured with: ../gcc-src/gcc-3.4.4/configure –enable-languages=c,c++ --enable-threads=posix –with-as=/usr/bin/as –with-ld=/usr/bin/ld

Thread model: aix

gcc version: 3.4.4

Reply via email to