Re: [openssl-dev] compile error

2015-07-27 Thread Song Geng
Hi, Finally I found the reason. The program find lib “crypto” in the default path. And my system has installed a openssl-0.98. That version doesn’t support “gcm”. I installed a new version openssl from source code, but it only generate libcrypto.a in directory “lib/“. And I notice that there’s

Re: [openssl-dev] compile error

2015-07-27 Thread Song Geng
Hi, Thanks for replying. I tried the command you mentioned. But it doesn’t work. I doubt that the implementation of “gcm” hasn’t be included. Could you use it sucessfully? Br, Great Soul soul.gr...@me.com > On Jul 24, 2015, at 7:52 PM, stefan.n...@t-online.de >

Re: [openssl-dev] compile error

2015-07-24 Thread stefan.n...@t-online.de
> And I use both gcc and clang with command “cc -g -Wall -I../../include -lcrypto aesgcm.c" to compile the source code. Long version: Note that the linker processes its libraries from left to right, e.g. if you have an object file object.o and to libraries liba.a and libb.a, then "cc object.o -la -

[openssl-dev] compile error

2015-07-23 Thread Song Geng
Hi guys, I am a novice about openssl. I encounter linker error when I try to compile evp demos which locate openssl/demos/evp. My computer info is: Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 And I use both gcc and clang with command