On Wednesday, April 6, 2016 at 1:47:25 AM UTC-4, Leighb2282 wrote: > > dang, I should have seen that - a latter reference has the ::Weak:: added > to it for the hash line. > > Sadly, this seems to make g++ throw out a whole HECK of a lot of errors > which I have not seen before, I don't know if this is due to something > funky with my install of libcrypto++ or something more sinister. > > Thanks again and sorry for taking so much of your time for something that > i'm guessing should be trivial. > > ~Leigh > > $ g++ -std=c++11 -I/usr/local/include -lcrypto++ cpp-md5sum.cpp -o > cpp-md5sum > /tmp/cceD1hXk.o: In function `main': > cpp-md5sum.cpp:(.text+0x332): undefined reference to > `CryptoPP::StringSinkTemplate<std::string>::StringSinkTemplate(std::string&)' > cpp-md5sum.cpp:(.text+0x344): undefined reference to > `CryptoPP::BufferedTransformation::Attach(CryptoPP::BufferedTransformation*) >
It looks like you are not linking to the Crypto++ library, or the symbols are not lining up. My first impression (since its g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4)) is to drop -std=c++11 since Debian and Ubuntu does not build with that flag. You should always build with the same compiler, flags, and C++ runtimes. Also see https://www.cryptopp.com/wiki/GNUmakefile#Creating_Programs. If that's not it, then verify the library is called libcrypto++.so and its where you expect it. Maybe something like `ls /usr/lib/libcrypto*` will help identify it. If interested, you can see what Debian and Ubuntu build with at http://buildd.debian.org/status/logs.php?pkg=libcrypto%2B%2B. Jeff -- -- 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/d/optout.
