Answer the question
In order to leave comments, you need to log in
Why are there two static library formats in windows?
Good afternoon!
I noticed that in windows 2 static library formats: lib and a. Are these files identical in their format, meaning and content? Why did the unix extension move to windows?
Answer the question
In order to leave comments, you need to log in
.a is an archive of code: compiled but not linked. You would link statically with it during your program's final link step.
.lib can be either the same as .a, or a magical so-called "import library": a thin placeholder which causes you to require a .dll at runtime.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question