R
RealCat
If there are functions whose names are the same in object files and
library files, what should happen during the compliation? Should this
always cause a link error, or can C compilers make assumptions such
as : "function definition in the object file has higher precedence
over the one in the library file" or "the one in the previously linked
library file has higher precedence over the ones in the library files
linked later."?
Is there any standard behaviour for this case or does it vary with
compiler implimentations?
library files, what should happen during the compliation? Should this
always cause a link error, or can C compilers make assumptions such
as : "function definition in the object file has higher precedence
over the one in the library file" or "the one in the previously linked
library file has higher precedence over the ones in the library files
linked later."?
Is there any standard behaviour for this case or does it vary with
compiler implimentations?