S
S
sddvxd2019-05-08 12:28:57
C++ / C#
sddvxd, 2019-05-08 12:28:57

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

1 answer(s)
R
Ronald McDonald, 2019-05-08
@sddvxd

.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.

https://stackoverflow.com/questions/2337949/whats-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question