On Monday, 6 February 2023 at 05:20:33 UTC, Richard (Rikki)
Andrew Cattermole wrote:
Source files go after flags.
$ dmd -i -L'-LC:\Program Files\PostgreSQL\15\lib' -Llpq app.d
For some reason, the `obj` file is link instead of the library.
```sh
C:\sources\pxe-restore\source>dmd -L'-LC:\Program\
Files\PostgreSQL\15\lib' -Llpq -i app.d
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 -L'-L"C:\Program\
Files\PostgreSQL\15\lib"' -Llpq -i app.d
LINK : fatal error LNK1104: не удается открыть файл
"'-LC:\Program\ Files\PostgreSQL\15\lib'.obj"
Error: linker exited with status 1104
```