Hi, I am trying to compile OpenSSL V0.9.8a. Visual Studio 2005 has several functions deprecated (read,write,fileno....).
I have replaced the deprecated function with the new one( read()->_read() ) Anything is working fine with one exception kbhit(). I've got the following 'error' codes: .\apps\s_server.c(1276) : error C2220: warning treated as error - no 'object' file generated .\apps\s_server.c(1276) : warning C4996: 'kbhit' was declared deprecated C:\Programme\Microsoft Visual Studio 8\VC\INCLUDE\conio.h(147) : see declaration of 'kbhit' Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _kbhit. See online help for details.' .\apps\s_server.c(1277) : warning C4996: 'kbhit' was declared deprecated C:\Programme\Microsoft Visual Studio 8\VC\INCLUDE\conio.h(147) : see declaration of 'kbhit' Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _kbhit. See online help for details.' NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. The conio.h has the following entries for kbhit(): _CRTIMP int __cdecl _kbhit(void); CRT_NONSTDC_DEPRECATE(_kbhit) _CRTIMP __checkReturn int __cdecl kbhit(void); The content of s_server.c on line 1276... : if((i < 0) || (!i && ! _kbhit() ) )continue; if( _kbhit() ) read_from_terminal = 1; In the source is _kbhit() used not the old kbhit(). But the compiler complain the use kbhit() in the error message. It seems the compiler does not use the new _kbhit(). What's the problem? Any ideas? I've found a workaround and redefine the old kbhit() as not deprecated in conio.h, but that's nasty. I am looking for a 'real' solution. Regards Daniel -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]