compile: link dynamic OR static library in Windows
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Feb 6 06:59:09 UTC 2023
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.
More information about the Digitalmars-d-learn
mailing list