My build process: mkdir cryptopp cd cryptopp wget http://cryptopp.com/cryptopp561.zip unzip cryptopp561.zip make CXX=/usr/bin/clang++
This will result in the error I posted. Result from clang --version: Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix -E On Tue, Mar 13, 2012 at 9:04 PM, Geoff Beier <[email protected]> wrote: > Can you detail your build process? I'm pretty sure I just built with > clang++ today, and I don't think we have any local changes to crypto++. > We're using cmake from its git tip and xcode 4.3.1. I'm not certain of > this, because I only built a pile of dependencies today and didn't build > any application that *uses* the library, but I'm reasonably confident. The > warning messages that floated by as I watched the build script run were > certainly clang-generated. > > Geoff > > > On Tue, Mar 13, 2012 at 23:47, Elliot Saba <[email protected]> wrote: > >> Hey, I'm trying to build cryptopp with clang on OSX 10.7 (Apple clang >> version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn), Target: >> x86_64-apple-darwin11.3.0) >> and when I make, I get the following error: >> >> usr/bin/clang++ -Os -w -pipe -march=native -Qunused-arguments >> -DCRYPTOPP_DISABLE_ASM -c arc4.cpp >> In file included from algparam.cpp:7: >> In file included from ./algparam.h:6: >> ./secblock.h:91:3: error: use of undeclared identifier 'CheckSize' >> CheckSize(n); >> ^ >> this-> >> ./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);} >> ^ >> ./algparam.h:16:2: note: in instantiation of member function >> 'CryptoPP::SecBlock<unsigned char, CryptoPP::Allo >> catorWithCleanup<byte> >::SecBlock' requested here >> ConstByteArrayParameter(const char *data = NULL, bool deepCopy = >> false) >> ^ >> ./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. >> >> >> Does anyone have any idea why this happens, or how to fix it? >> >> -- >> 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 "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.
