[dmd-beta] Getting Beta: dmd 1.067 and 2.052 beta

David Simcha dsimcha at gmail.com
Wed Feb 16 07:15:04 PST 2011


Never mind, I figured it out.  You just have to pass the linker the name of
the lib, put it in a lib directory, etc.

Correct:

Have a library named libfoo.a in lib32 and one in lib64.

Pass -L-lfoo

Incorrect:
Have a library named foo32.a and one named foo64.a

Pass -L/somedirectory/foo32.a -L/somedirectory/foo64.a

On Wed, Feb 16, 2011 at 9:17 AM, David Simcha <dsimcha at gmail.com> wrote:

>  Awesome.  I just retested on a total of ~30-40 kloc from various projects
> I've worked on and, as far as I can tell, *everything works*.  One
> question, though.  This is a how-to question, not a bug or anything.
> Sometimes when I don't need huge address space I may want to be able to
> build in both 32 mode and 64 mode, benchmark and use whichever's faster.
> (32 mode may be faster b/c it wastes less cache space, 64 may be faster b/c
> it has more registers).  I see for Phobos you have managed to get the linker
> to ignore 32-bit libs that it's passed when in 64-bit mode and vice-versa.
> However, when I pass other 64-bit libs in 32-bit mode and vice-versa,
> linking still fails.  Is there something I need to do besides have the
> --no-warn-search-mismatch flag in dmd.conf to get this to work?
>
>
> On 2/16/2011 4:46 AM, Walter Bright wrote:
>
> round up of more disastrous 64 bit bugs fixed
>
> http://ftp.digitalmars.com/dmd1beta.zip
> http://ftp.digitalmars.com/dmd2beta.zip
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110216/2b676423/attachment-0001.html>


More information about the dmd-beta mailing list