>       From: owner-openssl-us...@openssl.org On Behalf Of Kenneth Goldman
>       Sent: Tuesday, 16 June, 2009 09:35

>       I've installed the Shining Light openssl on Windows XP. I can
>       compile and link my program using Microsoft VC++ and the
libeay32MD.lib 
>       library.

>       When I try gcc, I get a linker error. Am I pointing to the wrong
>       library? Do I need an additional library? Am I missing some flag?
        
>       Here's a snippet of the linker output:
>       c:/progra~1/mingw/bin/gcc.exe -ggdb "c:/Program
Files/OpenSSL/lib/MinGW/libeay32.a"
> "c:/Program Files/OpenSSL/lib/MinGW/ssleay32.a" crypto.o -o crypto.exe
>       crypto.o: In function `MY_SHA1':
>       E:\eclipse\udx/crypto.c:315: undefined reference to `SHA1'
>       E:\eclipse\udx/crypto.c:657: undefined reference to `RSA_new'
>       E:\eclipse\udx/crypto.c:678: undefined reference to
`RSA_public_decrypt'
>       E:\eclipse\udx/crypto.c:690: undefined reference to `RSA_free'
>       ...
        
Put the libraries AFTER your object file(s).

Most linkers, including mingw/GNU, only resolve from a library 
references already outstanding from a previously linked module.



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to