Caleb Cushing ( xenoterracide ) wrote: > what I ended up writing... ... > > It seems to have problems linking though... > > g++ -lboost_filesystem -lcryptopp sha1.cpp > > /tmp/cctxcX1W.o: In function `getSha1Hash > (boost::filesystem::basic_path<std::basic_string<char, > std::char_traits<char>, std::allocator<char> >, > boost::filesystem::path_traits> const&, > bool)': > sha1.cpp:(.text+0x5a): undefined reference to > `CryptoPP::StringSinkTemplate<std::basic_string<char, > std::char_traits<char>, std::allocator<char> > >::StringSinkTemplate > (std::basic_string<char, std::char_traits<char>, std::allocator<char> >> &)' ...
Did you check (using nm) that your Crypto++ library actually provides the symbols the linker is complaining about? Maybe on Arch Linux Crypto++ is divided into several libraries and you have to link against more than one? Regards, Peter. --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
