Hi,

I have found a problem with the OpenSSL headers and C++ compilers.  I'm
reporting it here because there doesn't seem to be a better bug reporting
address.

The contents of the OpenSSL headers are enclosed in extern "C" blocks when
the compiler is a C++ compiler to give the definitions C linkage.  This is
fine.

The problem is when the OpenSSL headers include system header files within
the extern "C" block.  Some system headers can include definitions which
require C++ linkage, such as templates.  When this happens, the compilation
fails.

The solution is simple enough:  Close the extern "C" block before including
a header file from an OpenSSL header file, and reopen the extern "C" block
afterwards.

Jan Mikkelsen
[EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to