D Shared Software System version 0.4 released!

Gregor Richards Richards at codu.org
Tue Nov 21 08:41:57 PST 2006


Dawid Ciężarkiewicz wrote:
> It seems that when making libSDD-$dir.a DSSS archives ".o" files as they
> are. But what if in top level dir there are fies named same as in $dir
> subdir?
> 
> dpc at chesed:~/tmp/dsss-test1$ dsss build
> Creating imports for DD-pkg
> 
> pkg => DD-pkg
> + /home/dpc/d/bin/dsss_build -I/home/dpc/d/include/d -LIBPATH=/home/dpc/d/lib -LIBPATH=.  -od. -g -debug -explicit -lib -full
> pkg/b.d -TlibSDD-pkg.a
> /usr/bin/ar: creating libSDD-pkg.a
> 
> a.d => a
> + /home/dpc/d/bin/dsss_build -I/home/dpc/d/include/d -LIBPATH=/home/dpc/d/lib -LIBPATH=.  -od. -g -debug
> a.d -Ta
> a.o:(.data+0x30): undefined reference to `_ModuleInfo_1b'
> a.o: In function `_Dmain':
> /home/dpc/tmp/dsss-test1/a.d:4: undefined reference to `_Class_1b1B'
> /home/dpc/tmp/dsss-test1/a.d:4: undefined reference to `_D1b1B5_ctorFZC1b1B'
> collect2: ld returned 1 exit status
> 
> 
> No good.
> 
> Am I doing anything wrong? In attachment - test dir. If I'm right that DSSS
> should use some profix or even compress *.o files in subdirs (is that
> possible?) to avoid object name conflicts.

Yes, it should. It /doesn't/ because no compiler agrees on it :)

It's on the todo list.

  - Gregor Richards



More information about the Digitalmars-d-announce mailing list