On Sunday, 5 February 2023 at 13:37:16 UTC, user1234 wrote:
try
```
dmd -i app.d -L'-LC:\Program Files\PostgreSQL\15\lib' -Llpq
```
the first linker command gives a search path, the second a
libname.
It doesn't work
```sh
C:\sources\pxe-restore\source>dmd -i app.d -L'-LC:\Program
Files\PostgreSQL\15\lib' -Llpq
Error: cannot find input file `Files\PostgreSQL\15\lib'.d`
import path[0] = C:\D\dmd2\windows\bin64\..\..\src\phobos
import path[1] = C:\D\dmd2\windows\bin64\..\..\src\druntime\import
C:\sources\pxe-restore\source>dmd -i app.d -L'-L"C:\Program
Files\PostgreSQL\15\lib"'
LINK : fatal error LNK1104: не удается открыть файл
"'-LC:\Program Files\PostgreSQL\15\lib'.obj"
Error: linker exited with status 1104
C:\sources\pxe-restore\source>dmd -i app.d -L-L'C:\Program
Files\PostgreSQL\15\lib'
Error: cannot find input file `Files\PostgreSQL\15\lib'.d`
import path[0] = C:\D\dmd2\windows\bin64\..\..\src\phobos
import path[1] = C:\D\dmd2\windows\bin64\..\..\src\druntime\import
```