R
ravinder thakur
hi all experts,
i am porting a project from c to the c++ framework. during the porting
i have
encounterd a where i have a static and a global variable with the same
name. now what rules c languages uses to reslolve the ambiguity between
these two variables with the same names. more specifically what will
happen if the both of these varaibles gets included in some compilation
unit due to the interdependency between the header files???
plz note that this code is compiling and
linking perfectly but not in the newer c++ framework.
thanks in advance
rt
i am porting a project from c to the c++ framework. during the porting
i have
encounterd a where i have a static and a global variable with the same
name. now what rules c languages uses to reslolve the ambiguity between
these two variables with the same names. more specifically what will
happen if the both of these varaibles gets included in some compilation
unit due to the interdependency between the header files???
plz note that this code is compiling and
linking perfectly but not in the newer c++ framework.
thanks in advance
rt