D - -o doesn't work properly
- Matthew Wilson (17/17) Jun 27 2003 I've just upgraded from v0.62 to the latest, in the hope that -o would h...
- Walter (9/26) Jun 30 2003 Why not just skip the space and write -oblah.dbj?
- Matthew Wilson (5/40) Jul 08 2003 I think I tried that, and it failed. I'll have to check again.
- Matthew Wilson (12/47) Jul 08 2003 Doesn't work. Consider the following
- Matthew Wilson (9/59) Jul 08 2003 And, before anyone mentions it:
- Burton Radons (3/3) Jul 08 2003 This is a bug in mars.c at line 334, which discriminates between the
- Matthew Wilson (4/7) Jul 08 2003 Excellent.
- Walter (4/12) Aug 04 2003 I'm addressing this in 0.69. -Walter
I've just upgraded from v0.62 to the latest, in the hope that -o would have been extended. What I was after was a way to specify the output filename of a compile-only, in other words rather than dmd BLAH.D always producing BLAH.OBJ I wanted it to produce BLAH.DBJ. That way I could keep debug and release object files in the same directories, which meant that I could take advantage of suffix rules in my makefile, which meant a lot less timing (and a simpler makefile generator script). When I typed dmd on the new version I was very excited to see " -oobjdir write object files to directory objdir -o filename name output file " so typed dmd BLAH.D -o BLAH.DBJ (<= note the space between -o and BLAH.DBJ) only to be told that it could not create BLAH.DBJ\BLAH.OBJ. Bah! Any chance of this being fixed to work in the way I had intended? (Or have I missed something important ... ?) Matthew
Jun 27 2003
Why not just skip the space and write -oblah.dbj? "Matthew Wilson" <dmd synesis.com.au> wrote in message news:bdjagq$3p$1 digitaldaemon.com...I've just upgraded from v0.62 to the latest, in the hope that -o wouldhavebeen extended. What I was after was a way to specify the output filenameofa compile-only, in other words rather than dmd BLAH.D always producing BLAH.OBJ I wanted it to produce BLAH.DBJ. That way I could keep debug and release object files in the same directories, which meant that I couldtakeadvantage of suffix rules in my makefile, which meant a lot less timing(anda simpler makefile generator script). When I typed dmd on the new version I was very excited to see " -oobjdir write object files to directory objdir -o filename name output file " so typed dmd BLAH.D -o BLAH.DBJ (<= note the space between -o andBLAH.DBJ)only to be told that it could not create BLAH.DBJ\BLAH.OBJ. Bah! Any chance of this being fixed to work in the way I had intended? (Or haveImissed something important ... ?) Matthew
Jun 30 2003
I think I tried that, and it failed. I'll have to check again. "Walter" <walter digitalmars.com> wrote in message news:bdqimr$1dq7$1 digitaldaemon.com...Why not just skip the space and write -oblah.dbj? "Matthew Wilson" <dmd synesis.com.au> wrote in message news:bdjagq$3p$1 digitaldaemon.com...andI've just upgraded from v0.62 to the latest, in the hope that -o wouldhavebeen extended. What I was after was a way to specify the output filenameofa compile-only, in other words rather than dmd BLAH.D always producing BLAH.OBJ I wanted it to produce BLAH.DBJ. That way I could keep debughaverelease object files in the same directories, which meant that I couldtakeadvantage of suffix rules in my makefile, which meant a lot less timing(anda simpler makefile generator script). When I typed dmd on the new version I was very excited to see " -oobjdir write object files to directory objdir -o filename name output file " so typed dmd BLAH.D -o BLAH.DBJ (<= note the space between -o andBLAH.DBJ)only to be told that it could not create BLAH.DBJ\BLAH.OBJ. Bah! Any chance of this being fixed to work in the way I had intended? (OrImissed something important ... ?) Matthew
Jul 08 2003
Doesn't work. Consider the following H:\SynSoft\D\synsoft\text>dmd -c -otoken.dbj token.d Error: Error writing file 'token.dbj\token.obj' H:\SynSoft\D\synsoft\text>dmd -c -o token.dbj token.d Error: Error writing file 'token.dbj\token.obj' Both with DMD v0.67 "Walter" <walter digitalmars.com> wrote in message news:bdqimr$1dq7$1 digitaldaemon.com...Why not just skip the space and write -oblah.dbj? "Matthew Wilson" <dmd synesis.com.au> wrote in message news:bdjagq$3p$1 digitaldaemon.com...andI've just upgraded from v0.62 to the latest, in the hope that -o wouldhavebeen extended. What I was after was a way to specify the output filenameofa compile-only, in other words rather than dmd BLAH.D always producing BLAH.OBJ I wanted it to produce BLAH.DBJ. That way I could keep debughaverelease object files in the same directories, which meant that I couldtakeadvantage of suffix rules in my makefile, which meant a lot less timing(anda simpler makefile generator script). When I typed dmd on the new version I was very excited to see " -oobjdir write object files to directory objdir -o filename name output file " so typed dmd BLAH.D -o BLAH.DBJ (<= note the space between -o andBLAH.DBJ)only to be told that it could not create BLAH.DBJ\BLAH.OBJ. Bah! Any chance of this being fixed to work in the way I had intended? (OrImissed something important ... ?) Matthew
Jul 08 2003
And, before anyone mentions it: H:\SynSoft\D\synsoft\text>dmd -c token.d -otoken.dbj Error: Error writing file 'token.dbj\token.obj' H:\SynSoft\D\synsoft\text>dmd -c token.d -o token.dbj Error: Error writing file 'token.dbj\token.obj' "Matthew Wilson" <matthew stlsoft.org> wrote in message news:beg0vr$1b8m$1 digitaldaemon.com...Doesn't work. Consider the following H:\SynSoft\D\synsoft\text>dmd -c -otoken.dbj token.d Error: Error writing file 'token.dbj\token.obj' H:\SynSoft\D\synsoft\text>dmd -c -o token.dbj token.d Error: Error writing file 'token.dbj\token.obj' Both with DMD v0.67 "Walter" <walter digitalmars.com> wrote in message news:bdqimr$1dq7$1 digitaldaemon.com...filenameWhy not just skip the space and write -oblah.dbj? "Matthew Wilson" <dmd synesis.com.au> wrote in message news:bdjagq$3p$1 digitaldaemon.com...I've just upgraded from v0.62 to the latest, in the hope that -o wouldhavebeen extended. What I was after was a way to specify the outputtimingofanda compile-only, in other words rather than dmd BLAH.D always producing BLAH.OBJ I wanted it to produce BLAH.DBJ. That way I could keep debugrelease object files in the same directories, which meant that I couldtakeadvantage of suffix rules in my makefile, which meant a lot less(andhavea simpler makefile generator script). When I typed dmd on the new version I was very excited to see " -oobjdir write object files to directory objdir -o filename name output file " so typed dmd BLAH.D -o BLAH.DBJ (<= note the space between -o andBLAH.DBJ)only to be told that it could not create BLAH.DBJ\BLAH.OBJ. Bah! Any chance of this being fixed to work in the way I had intended? (OrImissed something important ... ?) Matthew
Jul 08 2003
This is a bug in mars.c at line 334, which discriminates between the types of -o by checking the file extension. If it matches .obj, it's considered an object file, otherwise it's considered an object directory.
Jul 08 2003
Excellent. I guess a fix is just around the corner. Shall we say 0.68? :) "Burton Radons" <loth users.sourceforge.net> wrote in message news:beg1hq$1bnb$1 digitaldaemon.com...This is a bug in mars.c at line 334, which discriminates between the types of -o by checking the file extension. If it matches .obj, it's considered an object file, otherwise it's considered an object directory.
Jul 08 2003
I'm addressing this in 0.69. -Walter "Matthew Wilson" <matthew stlsoft.org> wrote in message news:beg1o6$1bvl$1 digitaldaemon.com...Excellent. I guess a fix is just around the corner. Shall we say 0.68? :) "Burton Radons" <loth users.sourceforge.net> wrote in message news:beg1hq$1bnb$1 digitaldaemon.com...directory.This is a bug in mars.c at line 334, which discriminates between the types of -o by checking the file extension. If it matches .obj, it's considered an object file, otherwise it's considered an object
Aug 04 2003