06-05-2007 08:51 AM
06-06-2007 12:02 PM - edited 06-06-2007 12:02 PM
Hello Jon,
Is this the piece of code to which the error is referring?
/* errcode is deprecated in favor or errno_t, which is part of the standard proposal */
#if !defined(__midl)
_CRT_DEPRECATE_TEXT("This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t." ) typedef int errcode;
#else
typedef int errcode;
#endif
This macro is defined to inform the user that the standard name has changed. I was able was able to get mine up and running by removing the deprecate text macro like this:
typedef int errcode;
Please let me know if that does not solve the problem.
Message Edited by Ben M on 06-06-2007 12:26 PM
06-07-2007 03:10 AM
Hi Jon and Ben
I have the same problem , but in many other include files too. I have not been able to find a solution to the problem, but there should be a more general way out of the this, than change original include files from the VC SDK. In my list of errors the "_CRT_DEPRECATE_TEXT" isn't the only symbol that cause problems. Are there any project setting or compiler switches related to use of Visual Studio 2005 VC SDK include files?
Rolf
06-11-2007 03:15 PM
Hello Jon and Rolf,
Rolf, I agree with you, this is a sloppy way to avoid the issue. I am searching for a better solution and will post when I find it. For now, this does seem to correct the problem and allow you to compile when you include the affected files.