0

I try to link the gnutls library statical (libgnutls.a). I already did something like this with OpenSSL, which worked out perfectly wit the command line: g++ test.cpp -statical -lcrypto -ldl -o test. But if I try right the same with the gnuTLS library(g++ test.cpp -statical -lgnutls -ldl -o test), I get a lot of errors like this:

/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libgnutls.a(privkey.o): In Funktion `_gnutls_privkey_decode_ecc_key':
(.text+0x818): Nicht definierter Verweis auf `asn1_create_element'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libgnutls.a(privkey.o): In Funktion `_gnutls_privkey_decode_ecc_key':
(.text+0x86a): Nicht definierter Verweis auf `asn1_der_decoding'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libgnutls.a(privkey.o): In Funktion `_gnutls_privkey_decode_ecc_key':
(.text+0x8d3): Nicht definierter Verweis auf `asn1_read_value'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libgnutls.a(privkey.o): In Funktion `_gnutls_privkey_decode_ecc_key':

Is there a possibility to link the gnuTLS library statical?

janisz
  • 6,292
  • 4
  • 37
  • 70
Maximilian
  • 1,325
  • 2
  • 14
  • 35

0 Answers0