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?

Reply via email to