There are many updates on the emailing list for this particular issue, basically add a this-> to these declarations to resolve this issue (clang tells you where). I am not sure, but later versions of clang may be easier on this error (it's at 3.3. now).
Best Regards David Irvine It's not difficult, it's different ! <http://maidsafe.net>maidsafe.net Limited is a limited liability company incorporated in Scotland with number SC297540. VAT Registered 889 0608 77. Registered Office: 72 Templehill, Troon, KA10 6BE. Telephone Scotland: +44 *1292 317311* On Fri, Jun 7, 2013 at 10:40 PM, Aki Tuomi <[email protected]> wrote: > 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. > > > -- -- 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.
