Re: Failed to compile shared with error: undefined symbol: _ZTIN8CryptoPP21SimpleKeyingInterfaceE
Jeffrey Walton <[email protected]> Tue, 16 Aug 2022 22:24:33 -0400
| Newsgroups | gmane.comp.encryption.cryptopp |
|---|---|
| Message-ID | <CAH8yC8mjK3DZROY5BceQkzgrrmSn_kPLYx__Ap0joNd4=B-Unw@mail.gmail.com> |
On Tue, Aug 16, 2022 at 1:54 PM Cristian Rolando Reyes ChapoƱan <[email protected]> wrote: > > Hello everyone, a question when I try to use the package and compile it in shared form (.so) > and I want to read it I get this: > undefined symbol: _ZN8CryptoPP21SimpleKeyingInterface6SetKeyEPKhmRKNS_14NameValuePairsE > > in which I investigate and it says that I have to compile it in such a way that the symbols must be together with the compiled one, I have tried everything to compile it according to the forums and documentations with the command "-g" or "-O2" but I still cannot read the file > > My build commands are these: > > g++ -DNDEBUG -g -O2 -Wall -Wextra -o node.o node.cpp -l:libcryptopp.a > g++ -shared -o node.so node.o > > I would be very grateful for your great help. > > Versions install: > libcrypto++6 > libcrypto++-utils > libcrypto++-dev > libcrypto++-doc > libcrypto++6-dbg > > My code: > File name: node.cpp > > #include "cryptopp/modes.h" > #include "cryptopp/aes.h" > #include "cryptopp/filters.h" > #include "cryptopp/hex.h" I think you are missing <seckey.h>. You might also be interested in https://cryptopp.com/wiki/Wrapper_DLL . Jeff -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8mjK3DZROY5BceQkzgrrmSn_kPLYx__Ap0joNd4%3DB-Unw%40mail.gmail.com.