I am already linking in -lldap. Will -lopenldap work better?
-----Original Message----- From: Jeffrey Walton <noloa...@gmail.com> To: openssl-users <openssl-users@openssl.org> Sent: Sat, Jul 16, 2011 3:06 am Subject: Re: Trying to Link Statically to Libcrypto On Sat, Jul 16, 2011 at 2:39 AM, <brandon...@aol.com> wrote: Hi. I am writing some C++ on Linux with g++. When I try to link statically to libcrypto, by using the libcrypto.a library, it complains that RSA_generate_key and DH_generate_parameters are undefined references. Actually, I believe it said that openldap.so was complaining that they were undefined, so I guess libcrypto.a is calling openldap. penldap probably relies upon OpenSSL. > I am already including "-lssl" in my list of libraries. If this had worked, I would have next tried to link in libssl statically. he OpenSSL crypto stuff is brought in by libcrypto. > Any idea what library I can link in to define the above two references? ink to OpenSSL first, and then OpenLdap (order matters): gcc ... -lcrypto -lopenldap Jeff _____________________________________________________________________ penSSL Project http://www.openssl.org ser Support Mailing List openssl-users@openssl.org utomated List Manager majord...@openssl.org