--- ac ----
int i; // external definition
---- main.c ------
int i=0; // external definition int main(void) { i=0; }
In both files iis an external defnition in each translation unit and is iused in the expression. This should violate:
i
If an identifier declared with external connection is used in the expression (except as part of the operand of the sizeof operator whose result is an integer constant), somewhere in the entire program there should be only one external definition for the identifier; otherwise there should be no more than 1,140).
This custom behavior is a common extension implemented in many C compilers.
C99 (. . 32-34). , , Relaxed Ref/Def, , UNIX OS C C89. , , . .
, C : Strict Ref/Def Initialization. C .
P.S. , i a.c , . . "" . .
a.c
Source: https://habr.com/ru/post/1669646/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1669641/pandas-get-mapping-of-categories-to-integer-value&usg=ALkJrhiduxdLXJ--mbYAjjpI-tTVvJ0aywImplicit class resolution for parameterized types - scalaCalculate delayed column - rHow to use async-wait with MongoClient - node.jsPowershell: разделите строку на новую строку, затем используйте -contains - powershellAmazon alexa works - machine-learningWhy does GCC compile and link two files, even if "extern" is not used? - cFile path on RMI Server - javaCannot read property "appendChild" from null and other null variables - javascripturl rewriting remove the file name "news.php? url =" from url - urlAll Articles