From: Dr S N Henson <[EMAIL PROTECTED]>

drh> I did a few tests which suggest you definitely need
drh> __declspec(dllimport) to access global variables in DLLs but not for
drh> functions. Though it has been pointed out that it may produce more
drh> efficient code: I haven't tried that though.

OK, that's fine as long as we stay within the realm of OpenSSL.
Someone else told me that using __declspec(dllexport) and
__declspec(dllimport) does not work well when you're building or using
the static version of a library (specifically, there was failure using
ms\nt.mk).  This is still solvable within the realm of OpenSSL.

However, if an external application is to be linked with OpenSSL, what
can we do in e_os2.h to detect if the application is to be linked with
the static or the dynamic variant of libeay32?  I would have much
prefered if the whole __declspec() business could be magically taken
away, but it doesn't look like a possibility...

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to