On Windows you don't link directly against a DLL.

You link against a static library (.lib) of the same name.

The binding doesn't change between a static library and a shared library as long as you're linking during the compilation sequence and not during runtime.

For dub, it should be as simple as putting the name of the dll (and with that the import library) into the libs directive. As long as its some place where the linker will see it and is the right arch, it should work.

Treat the import library like a static library, because that is what it is.
  • compile: link dy... Alexander Zhirov via Digitalmars-d-learn
    • Re: compile... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: com... Alexander Zhirov via Digitalmars-d-learn
        • Re:... user1234 via Digitalmars-d-learn
          • ... Alexander Zhirov via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... Alexander Zhirov via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Alexander Zhirov via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Alexander Zhirov via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to