Below is your link command. It lacks -stdlib=libc++. Maybe you need to add "LDFLAGS+= -Wl,-stdlib=libc++".
However, I would strongly recommend you use the same CXXFLAGS since you are linking through the compiler (clang++). /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -single_module -dynamiclib -compatibility_version 1.0 -current_version 1.0.0 -install_name libcryptopp.1.dylib -o libcryptopp.1.0.0.dylib 3way.o adler32.o algparam.o arc4.o asn.o authenc.o base32.o base64.o basecode.o bench.o bench2.o bfinit.o blowfish.o blumshub.o camellia.o cast.o casts.o cbcmac.o ccm.o channels.o cmac.o cpu.o crc.o cryptlib.o cryptlib_bds.o datatest.o default.o des.o dessp.o dh.o dh2.o dll.o dlltest.o dsa.o eax.o ec2n.o ecp.o elgamal.o emsa2.o esign.o files.o filters.o fips140.o fipsalgt.o fipstest.o gcm.o gf256.o gf2_32.o gf2n.o gfpcrypt.o gost.o gzip.o hex.o hmac.o hrtimer.o ida.o idea.o integer.o iterhash.o luc.o mars.o marss.o md2.o md4.o md5.o misc.o modes.o mqueue.o mqv.o nbtheory.o network.o oaep.o osrng.o panama.o pch.o pkcspad.o pssr.o pubkey.o queue.o rabin.o randpool.o rc2.o rc5.o rc6.o rdrand.o rdtables.o regtest.o rijndael.o ripemd.o rng.o rsa.o rw.o safer.o salsa.o seal.o seed.o serpent.o sha.o sha3.o shacal2.o shark.o sharkbox.o simple.o skipjack.o socketft.o sosemanuk.o square.o squaretb.o tea.o test.o tftables.o tiger.o tigertab.o trdlocal.o ttmac.o twofish.o validat1.o validat2.o validat3.o vmac.o wait.o wake.o whrlpool.o winpipes.o xtr.o xtrcrypt.o zdeflate.o zinflate.o zlib.o -F/Applications/Qt/5.5/clang_64/lib -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL Undefined symbols for architecture x86_64: Jeff On Wednesday, December 30, 2015 at 11:30:51 PM UTC-5, Freddy Martinez wrote: > > Hi Jeff and thanks for your answer... > > I had read you mail and it doesn't work my for my friend... > > I had compile the cryptopp 5.6.3 using 2 configurations and I'm goind to > send you as attachment both output because they are to long... > > the file named *link app error.txt * is the output when I try to link > against the cryptopp compiled without the option -stdlib=libc++. So, I can > compile the cryptopp without this option without any trouble, but I can't > link against the compiled library. > > the file named *compiled error -stdlib=libc++.txt*is the file with the > output when I compile the cryptopp with Qt Creator. In that case, my config > is > > QMAKE_CXXFLAGS += -std=c++11 -Wno-c++11-narrowing -stdlib=libc++ > > > as you'll see, you could find that the compilation output say something like > > > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ > -c -pipe -std=c++11 -Wno-c++11-narrowing -stdlib=libc++ -g -isysroot > > > and there is the -stdlib=libc++ option on the compilation output > > > what is wrong my friend ?? > > > regards > > > El miércoles, 30 de diciembre de 2015, 12:07:13 (UTC-3), Jeffrey Walton > escribió: >> >> >> >> 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 cryptopp-users-unsubscr...@googlegroups.com. 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 cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.