D - Directry separator in dmd and link
- Robert (13/13) Dec 11 2003 I use dmd for windows.
- Walter (4/17) Dec 11 2003 Don't use / for a separator under windows, it just doesn't work that wel...
- Robert (4/6) Dec 11 2003 I use dmd in Cygwin.
- Robert (4/4) Dec 11 2003 I take that back, sorry.
- J Anderson (2/7) Dec 11 2003 Don't quotes "" work?
- Robert (3/12) Dec 11 2003 I'm afraid that it didn't work.
- Sean L. Palmer (5/20) Dec 11 2003 It seems the Windows or C runtime automatically extracts quoted strings ...
- Walter (6/12) Dec 12 2003 well.
I use dmd for windows. The dmd outputs object files as: dmd -c foo/bar.d -> foo\bar.obj dmd -c foo\bar.d -> .\bar.obj (Not good!) And, the linker: dmd foo/bar.obj -> It tries to link foo.obj with /BAR option... dmd foo\bar.obj -> It works as expected (outputs .\bar.exe.) If one uses '/' as separator, compiler is useful but linker is not, and if '\', opposite. It's much of a bother! I think that it's nice if both can be used equivalently. Robert (Japanese)
Dec 11 2003
Don't use / for a separator under windows, it just doesn't work that well. To control where the .obj file goes, try the -of flag. "Robert" <Robert_member pathlink.com> wrote in message news:br9m53$182q$1 digitaldaemon.com...I use dmd for windows. The dmd outputs object files as: dmd -c foo/bar.d -> foo\bar.obj dmd -c foo\bar.d -> .\bar.obj (Not good!) And, the linker: dmd foo/bar.obj -> It tries to link foo.obj with /BAR option... dmd foo\bar.obj -> It works as expected (outputs .\bar.exe.) If one uses '/' as separator, compiler is useful but linker is not, and if '\', opposite. It's much of a bother! I think that it's nice if both can be used equivalently. Robert (Japanese)
Dec 11 2003
In article <bramlo$2qp5$1 digitaldaemon.com>, Walter says...Don't use / for a separator under windows, it just doesn't work that well. To control where the .obj file goes, try the -of flag.I use dmd in Cygwin. So, it is convenient if '/' is also available... Robert (Japanese)
Dec 11 2003
I take that back, sorry. If '/' is used, compiler/linker can't determine whether '/foo/bar' is an absolute path or windows flags. Robert (Japanese)
Dec 11 2003
Robert wrote:I take that back, sorry. If '/' is used, compiler/linker can't determine whether '/foo/bar' is an absolute path or windows flags. Robert (Japanese)Don't quotes "" work?
Dec 11 2003
In article <brbgvm$uk1$1 digitaldaemon.com>, J Anderson says...Robert wrote:I'm afraid that it didn't work. Robert (Japanese)I take that back, sorry. If '/' is used, compiler/linker can't determine whether '/foo/bar' is an absolute path or windows flags. Robert (Japanese)Don't quotes "" work?
Dec 11 2003
"Robert" <Robert_member pathlink.com> wrote in message news:brbj8e$12nt$1 digitaldaemon.com...In article <brbgvm$uk1$1 digitaldaemon.com>, J Anderson says...It seems the Windows or C runtime automatically extracts quoted strings as a unit. SeanRobert wrote:I'm afraid that it didn't work. Robert (Japanese)I take that back, sorry. If '/' is used, compiler/linker can't determine whether '/foo/bar' is an absolute path or windows flags. Robert (Japanese)Don't quotes "" work?
Dec 11 2003
"Robert" <Robert_member pathlink.com> wrote in message news:brb3ob$c08$1 digitaldaemon.com...In article <bramlo$2qp5$1 digitaldaemon.com>, Walter says...well.Don't use / for a separator under windows, it just doesn't work thatMany folks have run into problems using Cygwin's shell. The / appears to be one of them, another is the shell doesn't seem to handle child process environments (upon which the dmc.exe driver depends) correctly.To control where the .obj file goes, try the -of flag.I use dmd in Cygwin. So, it is convenient if '/' is also available...
Dec 12 2003