ssl - Compiling C file on Solaris with OpenSSL includes -
i trying compile c file have written has include #include <openssl/evp.h>
on solaris 10. system openssl files (including evp.h) located under /usr/local/ssl/include/openssl
, can't them picked running following command:
gcc -o2 -fpic -shared -static-libgcc -i$java_home/include -i$java_home/include/solaris -m64 -lcrypto -lm -std=c99 -o libencrypt64.so encrypt.c
i've tried adding path headers ld_library_path
, path
still same errors:
encrypt.c:54:25: openssl/evp.h: no such file or directory
... , associated type's not found errors.
can tell me i'm going wrong please?
i've never seen $java_home explicitly put in gcc command before. value of $java_home supposed be?
can try adding necessary path directly gcc command? add
-i/usr/local/ssl/include
Comments
Post a Comment