Strange behaviour of rdmd vs. dmd concerning main function
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 17 13:29:24 PST 2017
On 02/17/2017 07:41 PM, berni wrote:
> The command that works is
>
> dmd a.d b.o
>
> where b.o is a precompiled c file, similar to
> https://github.com/dlang/druntime/blob/master/src/core/stdc/errno.c
>
> When using rdmd it doesn't work anymore. When I make rdmd --chatty, I
> can find the reason: b.o is ommited in the call of dmd. How can I make
> rdmd pass this parameter to dmd too?
You have to pass the .o file before the .d file. rdmd interprets
everything that comes after the .d file as arguments to the generated
program.
More information about the Digitalmars-d-learn
mailing list