Well I'm progressing -slowly

Bill Baxter dnewsgroup at billbaxter.com
Tue Feb 19 18:31:35 PST 2008

Ty Tower wrote:
> Jesse Phillips Wrote:
> [tytower at linuxbox dwt-linux]$ dmd main.d gcc main.o -o main -m32 -Xlinker
> -L/usr/bin/../lib -ltango-user-dmd -ltango-base-dmd -lpthread -lm
> main.o.data+0x38): undefined reference to
> `_D3dwt7widgets7Display12__ModuleInfoZ' main.o.data+0x3c): undefined
> reference to `_D3dwt7widgets5Shell12__ModuleInfoZ' main.o: In function
> `_Dmain':
> main.d.text._Dmain+0x8): undefined reference to
> `_D3dwt7widgets7Display7Display7__ClassZ' main.d.text._Dmain+0x13):
> undefined reference to
> `_D3dwt7widgets7Display7Display5_ctorMFZC3dwt7widgets7Display7Display'
> main.d.text._Dmain+0x1b): undefined reference to
> `_D3dwt7widgets5Shell5Shell7__ClassZ' main.d.text._Dmain+0x29):
> undefined reference to
> `_D3dwt7widgets5Shell5Shell5_ctorMFC3dwt7widgets7Display7DisplayZC3dwt7widgets5Shell5Shell'
> collect2: ld returned 1 exit status
> Could not find reference to needed libraries, you used dmd instead of
> dsss or rebuild, so the proper -l flags were not added.
> Just in passing I do not agree with this .There is no reason dmd would not add the correct libraries
> Prove it .

Prove it?  Prove that dmd does not guess which libraries you need?
There's nothing to prove.  DMD includes the libraries listed in your 
sc.ini and the source files and libs you list on the command line. 
Nothing else.  If you want to link with anything besides those, you have 
to list it yourself.  Or use DSSS.


More information about the Digitalmars-d-dwt mailing list