On Wed, Nov 4, 2009 at 08:24, jj Zhu wrote:
> gcc -static /usr/lib/libssl.a /usr/lib/libcrypto.a error.o wrapsock.o
> wrapunix.o driverUtility.o driver.o -o driver
> I get these compile errors:
> driver.o: In function `logout':
> driver.c:(.text+0x16e): undefined reference to `SSL_library_init'
your link order is wrong. the libraries have to come after all your
source files.
you also shouldnt use full paths. use the normal -lssl style -- the
-static flag will select the right library.
-mike
______________________________________________________________________
OpenSSL Project
http://www.openssl.orgUser Support Mailing List
openssl-users@...
Automated List Manager
majordomo@...