The information in this article applies to:
SUMMARY
In Microsoft C, the /H option is used to set the maximum length of
identifiers. Using /H can only decrease the maximum allowable length of
identifiers, not increase it. An identifier declared with the CDECL type
has an underscore (_) appended to the front at compile time. This character
is part of the identifier and takes a significant location. Therefore, the
maximum length of an identifier declared with the standard C declaration
syntax is 32 characters.
MORE INFORMATIONThe following example shows how using /H can actually introduce errors if identifier lengths are limited too much: Sample Code
You must also be careful when using the /H option because of
predefined compiler identifiers. If the maximum identifier length is
too small, certain predefined identifiers will be unresolved as well
as certain library function calls. For example, if the printf function
is used and the option /H5 is specified at compile time, the symbol
_prin will be created in order to reference printf, and this will not
be found in the library.
Additional query words: 8.00 8.00c 9.00 10.00 10.10 kbCompiler kbVC100 kbVC150 kbVC200 kbVC210 kbVC400 kbVC410 kbVC500 kbDSupport
Keywords : kbdocerr kbVC100 kbVC200 kbVC210 kbVC400 kbVC410 kbVC500 kbVC600 |
Last Reviewed: July 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |