AW: OpenSSL compilation errors in Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Getting the errors like below. ssl/packet_locl.h(429) : error C2440: '=' : cannot convert from 'void *' to 'unsigned char 'Conversion from 'void' to pointer to non-'void' requires an explicit cast

Is it possible that your error message was copied incorrectly? Line 429 is an assignment from 'void *' to 'unsigned char*', not to 'unsigned char'.

Such an assignment is allowed in C (and the type is implicitly converted), but not in C++. Is it possible, that you are including this header in a module compiled with a C++ compiler? Note that this is an internal header file and not meant to be included by third party software.

HTH,
Matthias




Von: openssl-users <openssl-users-bounces@xxxxxxxxxxx> Im Auftrag von Nagalakshmi V J
Gesendet: Montag, 30. September 2019 08:44
An: openssl-users@xxxxxxxxxxx
Cc: Umamaheswari Nagarajan <umamaheswari.nagarajan@xxxxxxxxxx>
Betreff: OpenSSL compilation errors in Windows

Hi,
I am using openssl 1.1.c from our product code. While compiling the code, I am getting the errors which can be suppressed as warnings using -fpermissive flag in Linux (gcc/g++). In windows, I am getting the same compilation errors in visual studio (2005). Would like to know the alternative of -fpermissive flag that can be used in visual studio to suppress the errors.
I tried adding the flags such as '/fpermissive' , '/Ze' in module properties->C/C++->command Line->Additional options. But it did not resolve the problem.
Getting the errors like below. ssl/packet_locl.h(429) : error C2440: '=' : cannot convert from 'void *' to 'unsigned char 'Conversion from 'void' to pointer to non-'void' requires an explicit cast

Since it is giving error in Openssl code, we cannot make any code changes there. Has anyone faced this kind of issue?
Please let me know how to resolve this issue.



Thanks and regards,
Nagalakshmi

=====================================================
Please refer to https://northamerica.altran.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux