DSSS 0.78 released.

Gregor Richards Richards at codu.org
Sat Sep 20 16:58:27 PDT 2008


Leonid Krashenko wrote:
> Gregor Richards wrote:
> 
> I am getting strange errors using rebuild/dsss:
> http://codepad.org/MfhzjJFG
> 
> If I use my own Makefile, everything compiles, links and runs successfully:
> 
> cc = dmd
> flags = -unittest
> link_flags = -L-lX11
> source_dirs = y std/c/linux/X11 tl
> 
> src_files = $(addsuffix /*.d, $(source_dirs))
> src_objs = $(patsubst %.d, %.o, $(wildcard $(src_files)))
> 
> paint: paint.o $(src_objs)
>         $(cc) $^ $(link_flags)
> 
> main: main.o $(src_objs)
>         $(cc) $^ $(link_flags)
> 
> VPATH := $(source_dirs) .
> 
> %.o: %.d
>         $(cc) -c $^ $(flags) -op
> 
> clean:
>         rm -f $(addsuffix /*.o, . $(source_dirs))
>         rm -f paint
>         rm -f main
> 
> What am I doing wrong?

Rebuild ignores D files in the package 'std', since those should be 
packages provided by the standard library. You really oughtn't to name 
things 'std' anyway, and putting 'X11' in std.c.linux doesn't make much 
sense regardless.

  - Gregor Richards


More information about the Digitalmars-d-announce mailing list