On Sunday, March 20, 2016 at 8:37:00 PM UTC-4, Jeffrey Walton wrote:
>
>
>
> On Sunday, March 20, 2016 at 5:22:28 PM UTC-4, Gaetano Mendola wrote:
>>
>> The following snippet:
>>
>> #include <cryptopp/hex.h>
>> int main() {
>>   CryptoPP::HexDecoder myHexDecoder;
>> }
>>
>>
>> does not link with clang++-3.8/clang++3.7 while it links just fine with 
>> gcc5.3.1
>>
>> $ apt-show-versions libcrypto++-dev
>> libcrypto++-dev:amd64/xenial 5.6.1-9 uptodate
>>
>> ...
>>
>>
> I also should have mentioned.... If the distro builds Crypto++ with the 
> GCC compiler, then that's what you should use (and you should not use 
> Clang). Mixing and matching compilers is a bad idea. Also see 
> https://cryptopp.com/wiki/Config.h#5.6.3_Recommendations .
>
> Yo can build the library and program with Clang. The thing is both should 
> be built with Clang, and it sounds like that means you have to build the 
> library from scratch using Clang. For building the library, see 
> https://cryptopp.com/wiki/GNUmakefile.
>

We updated the docs to make this more clear: 
http://cryptopp.com/wiki/GNUmakefile#Creating_Programs. It seems to be a 
reoccurring problem, so we have an obligation to ensure its clearly stated 
in the docs.

(Whether you find the doc you need is a different story, but we'll cross 
that bridge as we come to it :)

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.

Reply via email to