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. <br><br>Correct:<br><br>Have a library named libfoo.a in lib32 and one in lib64.<br><br>Pass -L-lfoo<br>
<br>Incorrect:<br>Have a library named foo32.a and one named foo64.a<br><br>Pass -L/somedirectory/foo32.a -L/somedirectory/foo64.a<br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 9:17 AM, David Simcha <span dir="ltr"><<a href="mailto:dsimcha@gmail.com">dsimcha@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
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, <b>everything
works</b>. 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?<div class="im"><br>
<br>
On 2/16/2011 4:46 AM, Walter Bright wrote:
</div><div><div></div><div class="h5"><blockquote type="cite">round
up of more disastrous 64 bit bugs fixed
<br>
<br>
<a href="http://ftp.digitalmars.com/dmd1beta.zip" target="_blank">http://ftp.digitalmars.com/dmd1beta.zip</a>
<br>
<a href="http://ftp.digitalmars.com/dmd2beta.zip" target="_blank">http://ftp.digitalmars.com/dmd2beta.zip</a>
<br>
_______________________________________________
<br>
dmd-beta mailing list
<br>
<a href="mailto:dmd-beta@puremagic.com" target="_blank">dmd-beta@puremagic.com</a>
<br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a>
<br>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br>