3 ms·
> you can't really automate this because object files might have external dependencies and the linker needs to know what these dependencies are If it can be do
by enriquto 6y ago
> you can't really automate this because object files might have external dependencies and the linker needs to know what these dependencies are
If it can be done at runtime of the program, I guess it can be done at runtime of the linker, doesn't it?
- higerordermap 6y agoYeah I have the same question. lld can list the dependencies right?
- spacechild1 6y agoYes, because someone put them there ;-)
- spacechild1 6y agoTechnically, Linux and macOS allow to build a shared library with undefined symbols and let the loader figure it out, but I wouldn't recommend it (it's easy to miss linker errors). On Windows, however, this is not possible. EDIT: also, building with unresolved symbols requires the host application to know about and link all the required external libraries, which is usually not what you want...