Richard Levitte - VMS Whacker wrote:
>
> Are __declspec(dllexport) and __declspec(dllimport) really needed in
> the OpenSSL library (see e_os2.h)? From the reading I've done, it
> seems it's not needed when you use a .def file, which we do.
>
> This was discussed some time ago, but I'm not sure we came to a
> conclusion...
>
I did a few tests which suggest you definitely need
__declspec(dllimport) to access global variables in DLLs but not for
functions. Though it has been pointed out that it may produce more
efficient code: I haven't tried that though.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]