import from the same dir

bearophile bearophileHUGS at lycos.com
Mon Nov 26 02:22:38 PST 2007


Alexandr Wrote:

> 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!

It's a silly limitation of DMD I hope to see solved soon. In the meantime this limitation can be written in the FAQ to warn newbies, and there are a couple of tools (I use one called "bud") that can solve that problem.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list