How are (Static) Libraries with Templates Compiled?
jmh530 via Digitalmars-d-learn Mon, 11 Mar 2019 12:56:19 -0700
Suppose I have a file with a simple templated function. I compile
that to a static library. I then compile another file that uses
the library into an executable. When compiled to the static
library, you don't know in advance what types it will call on the
templated function, so that must be resolved when compiling the
executable. So what information is in the static library that
allows this to take place? Is the library just a simple
collection of object files?
- How are (Static) Libraries with Tem... jmh530 via Digitalmars-d-learn
- Re: How are (Static) Libraries... ag0aep6g via Digitalmars-d-learn
- Re: How are (Static) Libra... jmh530 via Digitalmars-d-learn
- Re: How are (Static) L... Jacob Carlborg via Digitalmars-d-learn
- Re: How are (Static) Libraries... H. S. Teoh via Digitalmars-d-learn