Link Problem

TomD t_demmer at nospam.web.de
Thu Apr 2 05:52:40 PDT 2009


davidl Wrote:

[...]
> You're sure that's a linking problem?
> GDC only use DMD frontend, so if it's a linking problem it should be ld's.
> 
> LD seems to behave absurdly that it expects to resolve symbols.
> e.g.
> a.o provides symbol c, and b.o needs symbol c
> you'd better feed ld with: b.o a.o not a.o b.o

dmd also uses gcc (and hence ld) as linker, so if it is an ld
problem, it'll stay. The behavior you mention above is only
true for library files, AFAIK, not for objects. You should have
all objects before the libraries, though.

Ciao
TomD



More information about the Digitalmars-d mailing list