On Monday, 6 March 2023 at 01:52:06 UTC, ryuukk_ wrote:
6B71D90\dparse.lib -g
```

Are you saying dub doesn't build a static dcd.lib?

What to do to make it so i get a static dcd.lib file that contains all the code it needs?

This comfort me in my desire to no longer use dub ever

This is not dub's fault. When building a shared library, there's a link step, so any external dependencies are linked into the shared library just as they are with an executable. There is no link step with a static library. That means when you build your executable, you need to also link the static library's dependencies along with it.

Most of the symbols in your list appear to come from the packages listed in the dependencies section of DCD's dub.json:

https://github.com/dlang-community/DCD/blob/master/dub.json

So if you want to do this manually, with DCD as a static library, then you also need to build all of those dependencies and link them with your executable.
  • How to build a s... ryuukk_ via Digitalmars-d-learn
    • Re: How to ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: How... ryuukk_ via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... ryuukk_ via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... Mike Parker via Digitalmars-d-learn
          • ... ryuukk_ via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
            • ... Steven Schveighoffer via Digitalmars-d-learn
            • ... Mike Parker via Digitalmars-d-learn
              • ... Hipreme via Digitalmars-d-learn
      • Re: How... ryuukk_ via Digitalmars-d-learn
    • Re: How to ... Ruby The Roobster via Digitalmars-d-learn

Reply via email to