What is “object” in “object file” and why is it called this way? [duplicate]

Object files (or object code) are machine code files generated by a compiler from source code. The difference with an executable is that the object file isn’t linked, so references to functions, symbols, etc aren’t defined yet (their memory addresses is basically left blank). When you compile a C file with GCC: gcc -Wall -o … Read more

Difference between load-time dynamic linking and run-time dynamic linking

load-time linking is when symbols in the library, referenced by the executable (or another library) are handled when the executable/library is loaded into memory, by the operating system. Run-time linking is when you use an API provided by the OS or through a library to load a DLL or DSO when you need it, and … Read more

How does the linker handle identical template instantiations across translation units?

C++ requires that an inline function definition be present in a translation unit that references the function. Template member functions are implicitly inline, but also by default are instantiated with external linkage. Hence the duplication of definitions that will be visible to the linker when the same template is instantiated with the same template arguments … Read more

Is there a downside to using -Bsymbolic-functions?

Answering my own question because I just earned a Tumbleweed badge for it… and I found out subsequently But I was wondering whether there is perhaps a finer-grained control over this, like overwriting -Bsymbolic for individual function definitions of a library. Yes, there is the option –dynamic-list which does exactly that Should I be aware … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)