"Linda Zhang" <[email protected]> wrote:

2. There is a conflict of the order of winsock2.h and windows.h in some source
files so that the compiler shows error messages:
========
#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h 
instead."
mingw32-make: *** [tmp\t1_lib.o] Error 1
========
The bug is introduced by the include of <windows.h> in the file
"crypto/rand/rand.h" and finally raised by the inappropriate include order in
some source files.

Are you sure '-DWIN32_LEAN_AND_MEAN' is in your CFLAGS?
(it should be AFAICR). Adding this would ensure <winsock.h> is *not* included in <windows.h>. IMHO it would be cleaner to do this and make sure <winsock2.h> + <ws2tcpip.h> gets included explicitly.
--gv
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to