Getting compilation errors after upgrade to openssl 1.1.1d, errors pointing to openssl header files

Michael Wojcik Michael.Wojcik at
Fri Feb 7 21:12:52 UTC 2020

> From: Venkata Ramaraju Vana [ at]
> Sent: Thursday, February 06, 2020 03:01

> Error 209 error C2143: syntax error : missing ';' before '{'
> Error in "opensslconf.h" points to 'extern "C"' statement the following code:
> #ifdef  __cplusplus
> extern "C" {
> #endif

That error suggests you're compiling a C source file that includes <opensslconf.h> with __cplusplus defined. (Don't do that. __cplusplus should only be defined by the compiler itself, and only when compiling C++ source files.)

Or you're using an extremely old C++ compiler. Or there's something really wrong with your compiler.

Whatever this is, I can't see how it's an OpenSSL problem.

Michael Wojcik
Distinguished Engineer, Micro Focus

More information about the openssl-users mailing list