KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
While it is commonplace to combine multiple object files in a library, it is possible (at least in Linux) to combine multiple object files into another object file. (See combine two GCC compiled .o object files into a third .o file ) As there are downsides to using libraries instead of just combined object files: 1: It's easier to work with only one type of file (object) when linking, especially if all files do the same thing. 2: When linking (At least in GCC), libraries (by default) need to be ordered and can't handle cyclic dependencies. I want to know what advantages there are to libraries (apart from the catch 22 that they're used lots). After searching for a while, the only explanation I get seems to be that single libraries are better than multiple object files.
Tags (comma-separated)
Save Edits
Cancel