> From: owner-openssl-us...@openssl.org On Behalf Of Edward Shishkin
> Sent: Monday, 26 November, 2012 13:56

> I'd like to use new openssl features (GCM, CMAC, etc), but have
> troubles: with standard flags (-lssl -lcrypto) compilation failed:
> 
Compilation did not fail; linking did. Your question below is better.

> test.c:(.text+0x7f): undefined reference to `CRYPTO_gcm128_new'
> test.c:(.text+0x9e): undefined reference to `CRYPTO_gcm128_setiv'
> test.c:(.text+0xbd): undefined reference to `CRYPTO_gcm128_encrypt'
> test.c:(.text+0xd8): undefined reference to `CRYPTO_gcm128_tag'
> test.c:(.text+0xe4): undefined reference to `CRYPTO_gcm128_release'
> 
> Any ideas how to link it properly?
> 
Make sure you link with 1.0.1* libararies and it should work.

Did you install 1.0.1* to the system-default location on your system, 
or are you using a copy somewhere else, and if so how did you tell 
your toolchain where to look for tjat copy (and what is your toolchain, 
if other than the GCC/binutils which that error format suggests)?


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to