CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Warning on AIX

Threaded View

  1. #1
    Join Date
    Jun 2008
    Posts
    10

    Warning on AIX

    Hi

    My dev environment is -

    AIX mars 1 5 005A28AD4C00
    Thread model: aix
    gcc version 3.3.2

    I am trying to build a popular open source cryptography library (crypto++ http://www.cryptopp.com/#download v5.5.2).
    However, I get a warning message while compiling a CPP file (dll.cpp)

    misc.h: In member function `const T& CryptoPP::Singleton<T, F, instance>::Ref()
    const [with T = CryptoPP::DL_KeyAgreementAlgorithm_DH<CryptoPP::Integer,
    CryptoPP::NoCofactorMultiplication>, F =
    CryptoPP::NewObject<CryptoPP::DL_KeyAgreementAlgorithm_DH<CryptoPP::Integer,
    CryptoPP::NoCofactorMultiplication> >, int instance = 0]':
    dh.h:85: instantiated from `const CryptoPP::DL_KeyAgreementAlgorithm<typename GROUP_PARAMETERS::Element>& CryptoPP::DH_Domain<GROUP_PARAMETERS, COFACTOR_OPTION>::GetKeyAgreementAlgorithm() const [with GROUP_PARAMETERS = CryptoPP::DL_GroupParameters_GFP_DefaultSafePrime, COFACTOR_OPTION = CryptoPP::NoCofactorMultiplication]'
    dh.h:92: instantiated from here
    misc.h:121: warning: sorry: semantics of inline function static data `char
    s_objectState' are wrong (you'll wind up with multiple copies)

    The reference to misc.h (line 121) is in several places and I get many warning messages like that. I am going bonkers trying to figure out what this means and how to get rid of this.

    Line 120/121 looks like this -

    120: static simple_ptr<T> s_pObject;
    121: static char s_objectState = 0;

    I have attached the files in question and will be glad if someone can help me with this.

    Thanks

    Cheers!

    sid
    Attached Files Attached Files

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

Featured