New to D, path errors under WinXP
Regan Heath
regan at netmail.co.nz
Tue Sep 11 02:46:52 PDT 2007
Johannes wrote:
> ...and the problem lies not in voxel.d; I get the same error compiling the following program:
>
> import math;
> int main() {}
>
> And it doesn't matter which module I import.
>
> I'm using D 1.0 v1.016, reports itself as v1.015 (Downloaded a few minutes ago).
The import statement "import math;" is not correct (assuming you want
the phobos/std/math.d, try:
import std.math;
int main() {}
Does it give the same error?
Regan
p.s. "import math;" would try to import math.d in the phobos/ directory
or the directory specified in -I or the current dir.
More information about the Digitalmars-d-learn
mailing list