ImportC in a Dub project
Imperatorn
johan_forsberg_86 at hotmail.com
Fri Oct 28 18:56:03 UTC 2022
On Friday, 28 October 2022 at 18:43:21 UTC, Carsten Schlote wrote:
> On Friday, 28 October 2022 at 18:31:25 UTC, Steven
> Schveighoffer wrote:
>
>> [...]
>
> ```
> $ cat dub.json
> {
> "authors": [
> "Carsten Schlote"
> ],
> "copyright": "Copyright © 2022, Carsten Schlote",
> "description": "A minimal D application.",
> "license": "proprietary",
> "name": "importc-app",
> "lflags": [ "-lzstd", "zstd_binding.o" ],
> "preBuildCommands": [ "gcc -g -O0 -c -o zstd_binding.o
> source/zstd_binding.c"]
> ```
>
> [...]
Like schveiguy said, what's your build line? dmd should pick up
the file if the import has the same name as the file.
More information about the Digitalmars-d-learn
mailing list