Linking fails on Hello World?!

Robert Clipsham robert at octarineparrot.com
Thu Mar 25 08:40:30 PDT 2010


On 25/03/10 15:34, qwesx wrote:
> Robert Clipsham Wrote:
>
>> Try this:
>> $ ldc -L-L/usr/lib/d -L-ltango-base-ldc -L-ltango-user-ldc main.d
>>
>> If that works you need to make sure these -L's are included in yout
>> ldc.conf (I'm not sure where this is in the debian packages, probably
>> /etc/ldc.conf, /etc/ldc/ldc.conf or /usr/bin/ldc.conf).
>
> Thank you very much, it works now.
> -L-L/usr/lib/d and -L-ltango-base-ldc were already in the /etc/ldc.conf, but -L-ltango-user-ldc was missing.
>
> As I am pretty new to D, is it reasonable that this line was missing or is it worth a bug-report?
>
> Thank you very much!

The line won't be in there by default, as the tango user library isn't 
required to write your applications, only the runtime is. If you'd like 
to report a bug it should be to the packagers to see if they can 
automatically add in the user library to the configuration file when you 
install it. I'll add a note to
http://dsource.org/projects/ldc/wiki/BuildInstructionsUbuntu for future 
users in case anyone else has the problem.



More information about the Digitalmars-d mailing list