The information in this article applies to:
SYMPTOMSThe results of the __LINE__ macro are incorrect when you use Debug Information for Edit and Continue (/ZI). The problem may manifest itself as compiler, linker, or run-time errors. RESOLUTIONTo work around this problem, use the Program Database option (/Zi) instead of Edit and Continue (/ZI). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
The following sample code demonstrates the problem:
When compiled with the /Zi option, output is correct: Message at line 10 When compiled with the /ZI option, output is incorrect: Message at line (__LINE__Var+1) Additional query words:
Keywords : kbCompiler kbVC600bug |
Last Reviewed: January 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |