The information in this article applies to:
SYMPTOMSAn attempt to link an application fails and Microsoft LINK generates the following messages. With Microsoft C/C++ 16-bit compilers:With Microsoft C/C++ 32-bit compilers: CAUSEThe application declares an unsized array at file scope, and does not contain another declaration at file scope that specifies the size for the array. RESOLUTIONModify the source code of one of the modules to declare the array with its correct size at file scope. MORE INFORMATION
Because an unsized array declaration at file scope is considered
external, the C compiler cannot determine whether or not the size is
omitted intentionally, and the compiler does not generate an error
message.
Sample Code
To address this situation, create another source file that declares
Array to have a size (for example, "int Array[2]"), and compile and
link the two modules.
Additional query words:
Keywords : kbVC100 kbVC150 kbVC200 kbVC500 kbVC600 LinkIss |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |