Hi,
Add -leay32 to the end of the gcc command line of order to suppress the
link errors you are seeing. This will help the gcc linker find the
missing symbols exported by libeay32.a.
Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr
On 2/16/2011 8:07 PM, Rui Fernandes wrote:
I've followed these instructions:
"Assuming a default installation (C:\OpenSSL), go to
'C:\OpenSSL\lib\MinGW' and copy all of the files to your MinGW 'lib'
directory.
Next, copy everything in the 'C:\OpenSSL\include' directory to your
MinGW 'include' directory."
I've called the bn.h, with:
#include <openssl/bn.h>
and I've got the following errors:
C:\MinGW\bin>gcc fatorialBIG.c -o fatorialBIG.exe
C:\DOCUME~1\RUIMIG~1\DEFINI~1\Temp\cc7A3ZJd.o:fatorialBIG.c:(.text+0xf):
undefin
ed reference to `BN_new'
C:\DOCUME~1\RUIMIG~1\DEFINI~1\Temp\cc7A3ZJd.o:fatorialBIG.c:(.text+0x4c):
undefi
ned reference to `BN_dec2bn'
C:\DOCUME~1\RUIMIG~1\DEFINI~1\Temp\cc7A3ZJd.o:fatorialBIG.c:(.text+0x6a):
undefi
ned reference to `BN_mul_word'
C:\DOCUME~1\RUIMIG~1\DEFINI~1\Temp\cc7A3ZJd.o:fatorialBIG.c:(.text+0x84):
undefi
ned reference to `BN_bn2dec'
collect2: ld returned 1 exit status
Any ideas?
Regards,
Rui Fernandes
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org