On Mon, Sep 23, 2019 at 3:35 AM Emmanuelle via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > > Hello. My problem is exactly what it says on the title: my dmd > (windows 7, x64) doesn't seem to have -fPIC: > > --- > > dmd -fPIC > Error: unrecognized switch '-fPIC' > run `dmd` to print the compiler manual > run `dmd -man` to open browser on manual > --- > > `dmd --help` also doesn't have anything about fPIC. Sorry if I'm > being dense but why is that? Is it only available on Linux? > > Thank you!
It seems it is not available for windows and MacOS: https://github.com/dlang/dmd/blob/639c67162b2be90ebf8dc9a9f8118cb2a9606569/src/dmd/cli.d#L323