Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 07, 2018 Why does using zlib without pragma(lib, ...) work? | ||||
---|---|---|---|---|
| ||||
The following compiles without pragma(lib, ...): extern(C) { const(char)* zlibVersion(); } void main() { const(char)* sz = zlibVersion(); } |
June 08, 2018 Re: Why does using zlib without pragma(lib, ...) work? | ||||
---|---|---|---|---|
| ||||
Posted in reply to tipdbmp | 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.
|
June 07, 2018 Re: Why does using zlib without pragma(lib, ...) work? | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | What other libraries (if any) are part of Phobos? |
Copyright © 1999-2021 by the D Language Foundation