Relevant versions:

crypto++: 5.6.1-5build1
clang: 3.0-6ubuntu3
OS: Linux cmouse-VirtualBox 3.2.0-45-generic #70-Ubuntu SMP Wed May 29 
20:12:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Test program:

#include <cryptopp/osrng.h>

int main(void) {
  return 0;
}

Error messages:

$ clang++ -W -Wall -o test test.cc
In file included from test.cc:1:
In file included from /usr/include/cryptopp/osrng.h:10:
In file included from /usr/include/cryptopp/randpool.h:5:
In file included from /usr/include/cryptopp/filters.h:7:
/usr/include/cryptopp/secblock.h:91:3: error: use of undeclared identifier 
'CheckSize'
                CheckSize(n);
                ^
                this->
/usr/include/cryptopp/secblock.h:247:35: note: in instantiation of member 
function 'CryptoPP::AllocatorWithCleanup<unsigned char, false>::allocate' 
requested here
                : m_size(size) {m_ptr = m_alloc.allocate(size, NULL);}
                                                ^
/usr/include/cryptopp/algparam.h:16:2: note: in instantiation of member 
function 'CryptoPP::SecBlock<unsigned char, 
CryptoPP::AllocatorWithCleanup<byte> >::SecBlock' requested here
        ConstByteArrayParameter(const char *data = NULL, bool deepCopy = 
false)
        ^
/usr/include/cryptopp/secblock.h:37:14: note: must qualify identifier to 
find this declaration in dependent base class
        static void CheckSize(size_t n)
                    ^
1 error generated.

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to