mirror of
https://github.com/Noratrieb/blog.git
synced 2026-01-14 20:35:02 +01:00
fix: add backticks to variable
The word "then" was added because it would be hard to read otherwise, since there are two `...` siblings as in `a.b` `b`.
This commit is contained in:
parent
a26c953e92
commit
2a80bb9c4e
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ Libraries (both static and dynamic) behave similar to object files. They are rea
|
||||||
Except for libraries, the linker is lazy. If a library does *not satisfy any currently undefined symbols*, it's *not* read at all.
|
Except for libraries, the linker is lazy. If a library does *not satisfy any currently undefined symbols*, it's *not* read at all.
|
||||||
|
|
||||||
So for example, if instead of `b.o` we had `libb.a` linked in via `-lb`, the library would be linked in, as it can provide the `dependency` symbol.
|
So for example, if instead of `b.o` we had `libb.a` linked in via `-lb`, the library would be linked in, as it can provide the `dependency` symbol.
|
||||||
But if we instead did `ld -lb a.o`, b would be skipped, and then `a.o` would be read, and the `dependency` symbol would be unsatisfied!
|
But if we instead did `ld -lb a.o`, then `b` would be skipped, and then `a.o` would be read, and the `dependency` symbol would be unsatisfied!
|
||||||
|
|
||||||
To get around this, we always need to ensure that we provide each library and object file before its dependencies, so passing the dependency tree in a preorder/topologically sorted order, if you're into that terminology.
|
To get around this, we always need to ensure that we provide each library and object file before its dependencies, so passing the dependency tree in a preorder/topologically sorted order, if you're into that terminology.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue