I'm trying to compile my single main.d program in Arch Linux 64-bit, but it won't link, and I don't understand why.

Attempt 1:
----------
dmd source/main.d -Idwt/imp -Jdwt/org.eclipse.swt.gtk.linux.x86/res -L-Ldwt/lib -L--verbose -L-l:org.eclipse.swt.gtk.linux.x86 -L-l:dwt-base -L-lgtk-x11-2.0 -L-lgdk-x11-2.0 -L-latk-1.0 -L-lgdk_pixbuf-2.0 -L-lgthread-2.0 -L-lpangocairo-1.0 -L-lfontconfig -L-lXtst -L-lXext -L-lXrender -L-lXinerama -L-lXi -L-lXrandr -L-lXcursor -L-lXcomposite -L-lXdamage -L-lX11 -L-lXfixes -L-lpango-1.0 -L-lgobject-2.0 -L-lgmodule-2.0 -L-ldl -L-lglib-2.0 -L-lcairo -L-lgnomeui-2

...
attempt to open main.o succeeded
main.o
attempt to open org.eclipse.swt.gtk.linux.x86 failed
attempt to open dwt/lib/org.eclipse.swt.gtk.linux.x86 failed
attempt to open /usr/lib/org.eclipse.swt.gtk.linux.x86 failed
...
attempt to open dwt-base failed
attempt to open dwt/lib/dwt-base failed
attempt to open /usr/lib/dwt-base failed

...
/usr/bin/ld: cannot find org.eclipse.swt.gtk.linux.x86
/usr/bin/ld: cannot find dwt-base
...

But the libs are there...
ls -al dwt/lib
total 26488
drwxr-xr-x  2 mike users     4096 Jul 13 15:02 .
drwxr-xr-x 11 mike users     4096 Jul 13 10:04 ..
-rw-r--r--  1 mike users  2216828 Jul 13 13:02 dwt-base.a
-rw-r--r-- 1 mike users 24894894 Jul 13 13:02 org.eclipse.swt.gtk.linux.x86.a


Attemp 2: Add .a to the missing lib files
attempt to open org.eclipse.swt.gtk.linux.x86.a failed
attempt to open dwt/lib/org.eclipse.swt.gtk.linux.x86.a succeeded
attempt to open /usr/lib/org.eclipse.swt.gtk.linux.x86.a failed
...
attempt to open dwt-base.a failed
attempt to open dwt/lib/dwt-base.a succeeded
attempt to open /usr/lib/dwt-base.a failed
...
/usr/bin/ld: cannot find org.eclipse.swt.gtk.linux.x86.a
/usr/bin/ld: cannot find dwt-base.a
...

It says it finds the files, but still fails to link. All other libs seem to link fine. What am I doing wrong?

Thanks,
Mike

Reply via email to