Why does using zlib without pragma(lib, ...) work?

rikki cattermole rikki at cattermole.co.nz
Thu Jun 7 12:02:21 UTC 2018


On 07/06/2018 11:47 PM, tipdbmp wrote:
> The following compiles without pragma(lib, ...):
> 
> extern(C) {
>      const(char)* zlibVersion();
> }
> 
> void main() {
>      const(char)* sz = zlibVersion();
> }

It has already been compiled in as part of Phobos.



More information about the Digitalmars-d-learn mailing list