On Tuesday, December 29, 2015 at 10:40:42 PM UTC-5, Freddy Martinez wrote:
>
> Hi guys... i had compiled cryptopp with qtcreator
>

You should probably run 'make' from the command line to see what defines 
the library is using. You can still use Qt, but you will know the CXXFLAGS 
you need.
 

> in the .pro file for cryptopp I have added this tow lines
>
> mac{
>
>        QMAKE_CXXFLAGS += -std=c++11 -Wno-c++11-narrowing
>
>        DEFINES += CRYPTOPP_DISABLE_ASM
>
> }
>
>
If working from 5.6.3 or the latest sources, you no longer need 
-DCRYPTOPP_DISABLE_ASM. Uri and I cut-in most of the support needed for 
Clang's integrated assembler before 5.6.3. We needed to make some updates 
after 5.6.3 was released, but that was for Clang on Linux.
 

> when I try to link against my compiled library, I got this link errors
>
>
> Undefined symbols for architecture x86_64:
>
> "CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&,
>  
> std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > const&, unsigned long long)", referenced from:
>
> vtable for CryptoPP::AutoSeededRandomPool in RSALicEncoderDecoder.o
>

You need to add CXXFLAGS+="-stdlib=libc++". The "__1" is an inlined 
namespace, at it tells you its LLVM's libc++ runtime library. Also see 
http://stackoverflow.com/q/29293394 

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