On Monday, 6 February 2023 at 06:59:09 UTC, Richard (Rikki) Andrew Cattermole wrote:
On other platforms the -Lfile I think would work.

On Windows you have to link against the import library not DLL directly.

You can pass it to the compiler:

$ dmd -i "-L/LIBPATH:C:\Program Files\PostgreSQL\15\lib" pq.lib app.d

Should work. Sorry, I should have revisted this from the get go, rather than just tinkering with what others were posting.

It doesn't work anyway...

Is it possible to collect all this from under mingw so that the linker is not Microsoft, but `ld'?
  • 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
                • ... Alexander Zhirov via Digitalmars-d-learn
    • Re: compile... Ferhat Kurtulmuş via Digitalmars-d-learn
      • Re: com... Alexander Zhirov via Digitalmars-d-learn

Reply via email to