3 ms·
Generating many object files is pointless for building an executable or a dynamic library, but it remains the desired behavior for building a static library. M
by adrian_b 1y ago
Generating many object files is pointless for building an executable or a dynamic library, but it remains the desired behavior for building a static library.
Many software projects that must generate multiple executables are better structured as a static library plus one source file with the "main" function for each executable.
- WalterBright 1y agoOne thing the D compiler does is it can generate a library in one step (no need to use the librarian). Give a bunch of source files and object files on the command line, specify a library as the output, and boom! library created directly (compiling the source files, and adding the object files). I haven't used a librarian program for maybe a decade.