On Friday 18 March 2011 20:49:58 Sean Eskapp wrote:
> incompatible /usr/lib/../lib/librt.so when searching
> for -lrt
> /usr/bin/ld: skipping incompatible /usr/lib/../lib/librt.a when searching
> for -lrt
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-
> gnu/4.4.5/../../../librt.so when searching for -lrt
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-
> gnu/4.4.5/../../../librt.a when searching for -lrt
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-
> gnu/4.4.5/../../../../lib/libc.so

Look at dmd.conf. It includes several flags which are supposed to be passed to 
the linker - either that or you can use dmd to link rather than using gcc on 
its 
own. Personally, I wouldn't bother compiling and linking as separate steps, but 
if you do, you need to make sure that you either use the flags in dmd.conf or 
you 
link with dmd rather than gcc. For the most part, there's no reason to link 
with 
gcc, even if you want to link separately.

- Jonathan M Davis

Reply via email to