<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 March 2013 14:06, Benjamin Thaut <span dir="ltr"><<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 15.03.2013 14:20, schrieb Iain Buclaw:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 15 March 2013 13:18, Iain Buclaw <<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a><div class="im"><br>
<mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a>>> wrote:<br>
<br>
On 15 March 2013 13:05, Benjamin Thaut <<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a><br></div><div class="im">
<mailto:<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a><u></u>>> wrote:<br>
<br>
Am 15.03.2013 13:26, schrieb Iain Buclaw:<br>
<br>
On 15 March 2013 12:01, Benjamin Thaut<br>
<<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a> <mailto:<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a><u></u>><br>
<br></div>
<mailto:<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a><div><div class="h5"><br>
<mailto:<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a><u></u>>__>> wrote:<br>
<br>
<br>
Well I don't want to overwrite the existing version of<br>
druntime and<br>
phobos. I want to be ablte to specifiy via a compiler<br>
option to use<br>
a different version of them. In some projects I use the<br>
original<br>
druntime + phobos and in other projects I use my custom<br>
version.<br>
With dmd this is possible via a custom sc.ini file. So<br>
is there a<br>
option to just remove druntime/phobos from<br>
LIBRARY_PATH? (and keep<br>
everything else)<br>
<br>
Kind Regards<br>
Benjamin Thaut<br>
<br>
<br>
You didn't seem to read my first message. :)<br>
<br>
On 15 March 2013 10:03, Iain Buclaw <<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a><br>
<mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a>><br>
<mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a> <mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a>>><br>
<mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a> <mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a>><br>
<mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a> <mailto:<a href="mailto:ibuclaw@ubuntu.com" target="_blank">ibuclaw@ubuntu.com</a>>>>> wrote:<br>
<br>
The library is installed in /usr/lib, which is part<br>
of the<br>
LIBRARY_PATH. The static library itself is a<br>
combination of<br>
druntime and phobos together, not separate at the<br>
moment. To<br>
specify a different standard library, use -defaultlib<br>
switch.<br>
<br>
<br>
<br>
--<br>
Iain Buclaw<br>
<br>
*(p < e ? p++ : p) = (c & 0x0f) + '0';<br>
<br>
<br>
I don't fully understand that statement.<br>
So the -defaultlib switch gives the location for the import<br>
files .di/.d and not for the actual library (.a) ?<br>
<br>
<br>
No, that's -I and -J<br>
<br>
<br>
<br></div></div><div class="im">
Use case:<br>
<br>
gdc foo.d -defaultlib tango2<br>
<br>
<br>
This will invoke the driver to add -ltango2 to the linker options,<br>
instead of -lgphobos2<br>
<br>
Regards<br></div><div class="im">
--<br>
Iain Buclaw<br>
<br>
*(p < e ? p++ : p) = (c & 0x0f) + '0';<br>
</div></blockquote>
<br>
Well but I'm not talking about the linker. If I do<br>
<br>
import std.stdio;<br>
<br>
I want to have a error message that std.stdio does not exist.<br>
<br>
Kind Regards<span class="HOEnZb"><font color="#888888"><br>
Benjamin Thaut<br>
</font></span></blockquote></div><br><br></div><div class="gmail_extra">-nostdinc should do that. Though the first error thrown would be that object.di cannot be found, which is correct behaviour, you need to specify where the new object.di is using -I<br>
</div><div class="gmail_extra"><br clear="all"><br>-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>