Linking fails on Hello World?!

2010-03-25 Thread qwesx
Hello! I just installed LDC on Debian from the repository and tried out to compile a simple Hello World program: > import tango.io.Stdout; > int main(char[][] argv) { > Stdout("Hello world!"); > return 0; > } Looks simlpe enough, but when running "ldc main.d" the following error is printed:

Re: Linking fails on Hello World?!

2010-03-25 Thread Robert Clipsham
On 25/03/10 15:02, qwesx wrote: Hello! I just installed LDC on Debian from the repository and tried out to compile a simple Hello World program: import tango.io.Stdout; int main(char[][] argv) { Stdout("Hello world!"); return 0; } Looks simlpe enough, but when running "ldc main.d" the

Re: Linking fails on Hello World?!

2010-03-25 Thread qwesx
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/l

Re: Linking fails on Hello World?!

2010-03-25 Thread Robert Clipsham
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/l

Re: Linking fails on Hello World?!

2010-03-25 Thread Moritz Warning
On Thu, 25 Mar 2010 11:34:15 -0400, 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,