import from the same dir

Alexandr sashulika at gmail.com
Mon Nov 26 00:39:47 PST 2007


hello to all!
i have:
======systemsolver.d====
module systemsolver;
import std.stdio;
class SystemSolver
{
  this()
  {
    writefln("Constr!");
  }
}

===main.d==
import std.stdio;
import systemsolver;

void main(char[][] args)
{
  writefln("Hello World, Reloaded");
}
=====
these 2 files are in the same dir. When i try to compile main.d i get error:
user at LMZ:/Coding$ dmd main.d 
gcc main.o -o main -m32 -Xlinker -L/home/user/dmd/bin/../lib -lphobos -lpthread -lm 
main.o:(.data+0x38): undefined reference to `_D12systemsolver12__ModuleInfoZ'
collect2: ld returned 1 exit status
--- errorlevel 1
======
help me please!



More information about the Digitalmars-d-learn mailing list