www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error: -o no longer supported, use -of or -od

reply Zaheer Ahmed <zaheercena gmail.com> writes:
When Compiling kernel.d with makefile I get
Error: -o no longer supported, use -of or -od
and my Makefile Commands to do this is following.

DMDPARAMS = -m32
//...some objects
%.o: %.d
        dmd $(DMDPARAMS) -o $  -c $<
Jul 17 2017
parent reply Jonathan Marler <johnnymarler gmail.com> writes:
On Monday, 17 July 2017 at 16:08:30 UTC, Zaheer Ahmed wrote:
 When Compiling kernel.d with makefile I get
 Error: -o no longer supported, use -of or -od
 and my Makefile Commands to do this is following.

 DMDPARAMS = -m32
 //...some objects
 %.o: %.d
        dmd $(DMDPARAMS) -o $  -c $<
dmd $(DMDPARAMS) -of$ -c $<
Jul 17 2017
parent Zaheer Ahmed <zaheercena gmail.com> writes:
On Monday, 17 July 2017 at 17:10:51 UTC, Jonathan Marler wrote:
 On Monday, 17 July 2017 at 16:08:30 UTC, Zaheer Ahmed wrote:
 When Compiling kernel.d with makefile I get
 Error: -o no longer supported, use -of or -od
 and my Makefile Commands to do this is following.

 DMDPARAMS = -m32
 //...some objects
 %.o: %.d
        dmd $(DMDPARAMS) -o $  -c $<
dmd $(DMDPARAMS) -of$ -c $<
Thank You. This is working. I was trying but putting space between -of$ like "-of $ " and source file should be immediately right after '-of'.
Jul 17 2017