dmd and string imports on Windows
Atila Neves via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 10 12:59:16 PDT 2015
On Linux:
foo.d:
import std.stdio;
void main() { writeln(import("dir/bar.txt")); }
dmd -J. foo.d # ok
On Windows:
Error: file "dir/bar.txt" cannot be found or not in a path
specified with -J
I tried the obvious buildPath("dir", "bar.txt") instead and now:
Error: file "dir\\bar.d" cannot be found or not in a path
specified with -J
I tried r"dir\bar.txt" and "dir\\bar.txt" and still nothing. What
am I supposed to do? Thanks,
Atila
More information about the Digitalmars-d-learn
mailing list