Package: libcrypto++-dev
Version: 5.6.4-8
Severity: important

For some reason, linking to the crypto++ dynamic library fails.
Note that these are linker errors; the compiler has no problem.

What is wrong with this? Is some other option necessary?

If so, it should go in a README file.


$ g++ -I/usr/include/cryptopp -o fingerprint fingerprint.cc -lcryptopp
/usr/bin/ld: /tmp/ccphZUrI.o: in function `main':
fingerprint.cc:(.text+0x6e2): undefined reference to
`CryptoPP::BLAKE2_Base<unsigned long long, true>::Update(unsigned char const*,
unsigned long)'
/usr/bin/ld: /tmp/ccphZUrI.o: in function `CryptoPP::BLAKE2b::BLAKE2b(bool,
unsigned int)':
fingerprint.cc:(.text._ZN8CryptoPP7BLAKE2bC2Ebj[_ZN8CryptoPP7BLAKE2bC5Ebj]+0x25):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::BLAKE2_Base(bool, unsigned int)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0x88):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::UncheckedSetKey(unsigned char const*, unsigned int,
CryptoPP::NameValuePairs const&)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0xa8):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::Update(unsigned char const*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0xb0):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::Restart()'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0xb8):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::TruncatedFinal(unsigned char*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0xf0):
undefined reference to `non-virtual thunk to CryptoPP::BLAKE2_Base<unsigned
long long, true>::Update(unsigned char const*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0x108):
undefined reference to `non-virtual thunk to CryptoPP::BLAKE2_Base<unsigned
long long, true>::Restart()'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP7BLAKE2bE[_ZTVN8CryptoPP7BLAKE2bE]+0x148):
undefined reference to `non-virtual thunk to CryptoPP::BLAKE2_Base<unsigned
long long, true>::TruncatedFinal(unsigned char*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0x88):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::UncheckedSetKey(unsigned char const*, unsigned int,
CryptoPP::NameValuePairs const&)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0xa8):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::Update(unsigned char const*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0xb0):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::Restart()'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0xb8):
undefined reference to `CryptoPP::BLAKE2_Base<unsigned long long,
true>::TruncatedFinal(unsigned char*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0xf0):
undefined reference to `non-virtual thunk to CryptoPP::BLAKE2_Base<unsigned
long long, true>::Update(unsigned char const*, unsigned long)'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0x108):
undefined reference to `non-virtual thunk to CryptoPP::BLAKE2_Base<unsigned
long long, true>::Restart()'
/usr/bin/ld:
/tmp/ccphZUrI.o:(.data.rel.ro._ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE[_ZTVN8CryptoPP11BLAKE2_BaseIyLb1EEE]+0x148):
undefined reference to `non-virtual thunk to CryptoPP::BLAKE2_Base<unsigned
long long, true>::TruncatedFinal(unsigned char*, unsigned long)'
collect2: error: ld returned 1 exit status



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8), 
LANGUAGE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcrypto++-dev depends on:
ii  libcrypto++6  5.6.4-8

libcrypto++-dev recommends no packages.

libcrypto++-dev suggests no packages.

-- no debconf information

Reply via email to