BUG: 'CXX0017: Error: symbol not found' Compiling with /ZiLast reviewed: July 22, 1997Article ID: Q115709 |
1.00 1.50
WINDOWS
kbtool kbbuglist
The information in this article applies to:
SYMPTOMSAttempting to use the CodeView Display Expression command (?) when debugging code which was compiled with the /Zi switch may cause CodeView to generate the following error message:
CXX0017: Error: symbol not found CAUSEThe compiler is not emitting the correct symbolic information for the symbol.
RESOLUTIONYou can sometimes avoid the problem by compiling with the /Z7 switch.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed above. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe sample code shown below can be used to illustrate the problem. To reproduce the problem, do the following:
Compiling the same code with /Od /Z7 and following steps 2 through 6 listed above causes CodeView to correctly display the string "PASSED" as the return from Function().
Sample Code
/* Compile options needed: /Od /Zi */ char * Function( int Condition ); int X(void) { return 5; } void main( void ){ struct X { int a; }; X x; x.a = 1; { struct X { int b; }; X y; y.b = 2; }}
char * Function( int Condition ){ if( Condition ) return "PASSED"; else return "FAILED"; } |
Additional reference words: 1.00 1.50 4.10 8.00 8.00c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |