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.
  • 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