How are (Static) Libraries with Templates Compiled?

jmh530 john.michael.hall at gmail.com
Mon Mar 11 20:59:21 UTC 2019


On Monday, 11 March 2019 at 20:11:37 UTC, ag0aep6g wrote:
> On Monday, 11 March 2019 at 19:53:53 UTC, jmh530 wrote:
>> So what information is in the static library that allows this 
>> to take place?
>
> None. The information is in in the source or interface file 
> (.d/.di). Templates can't be compiled before they're 
> instantiated.

Ah, so you need the .lib files and the .di files to get it work.


More information about the Digitalmars-d-learn mailing list