Include -lcrypto in your command.  -lcrypto is a separate library from
-lssl, and both are necessary.

-Kyle H

On Thu, Jun 26, 2008 at 3:35 PM, Marco Sommella
<[EMAIL PROTECTED]> wrote:
> Hi,
> i'm using OpenSolaris 2008.05 snv_91. if i try to compile with gcc -lssl
> file.c receive this error:
> Undefined            first referenced
> symbol                  in file
> PEM_read_RSAPublicKey               /var/tmp//ccIla4Ec.o  (symbol belongs to
> implicit dependency
> /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../../libcrypto.so.0.9.8)
> RSA_check_key                       /var/tmp//ccIla4Ec.o  (symbol belongs to
> implicit dependency
> /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../../libcrypto.so.0.9.8)
> PEM_read_RSAPrivateKey              /var/tmp//ccIla4Ec.o  (symbol belongs to
> implicit dependency
> /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../../libcrypto.so.0.9.8)
>
> can someone help me plz ?
> TNX
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]
  • gcc problem Marco Sommella
    • Re: gcc problem Kyle Hamilton

Reply via email to