Using D libraries with SDL. Error: "Cannot find module protobuf'

IchorDev zxinsworld at gmail.com
Sat Aug 24 12:55:21 UTC 2024


On Saturday, 24 August 2024 at 12:35:03 UTC, Nicol Farran Terra 
wrote:
> On Saturday, 24 August 2024 at 12:29:41 UTC, IchorDev wrote:
>> On Saturday, 24 August 2024 at 12:24:04 UTC, Nicol Farran 
>> Terra wrote:
>>> On Saturday, 24 August 2024 at 12:11:03 UTC, IchorDev wrote:
>>>> snip
>>>
>>> snip2
>
> That is....very helpful. So sort of like Swift, running the 
> 'build' command will just go through my source tree and just 
> make sure everything links + builds for compile or am I missing 
> something?

You’re spot on.

> So basically, unless I want to use the compiler -f flag, I 
> should probably just use dub build going forward to see if my 
> work compiles.

You could add `dflags "-f"` to your dub.sdl if you want the 
compiler to be passed `-f`: 
https://dub.pm/dub-reference/build_settings/#dflags
Keep in mind that some flags are compiler-specific, so if you 
want to try LDC2 or GDC you might need to create 
compiler-specific variations:
```sdl
dflags "-example" platform="dmd"
dflags "-example" platform="ldc"
dflags "--example" platform="gdc"
```

Good luck!


More information about the Digitalmars-d-learn mailing list