<br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 10:00 AM, David Chisnall <span dir="ltr"><<a href="mailto:csdavec@swan.ac.uk">csdavec@swan.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 9 Nov 2011, at 14:50, Christopher Jefferson wrote:<br>
<br>
> True. I'm not sure of the best way of handling this.<br>
><br>
> To be honest, I would just prefer a nicer error / warning message. Making some attempt to inform the user of their (extremely common) mistake, and how they could go about fixing it, would make life much better for users. I'm not sure of the best place for this to live (clang? linker?) Of course it also isn't necessary to catch all cases, just some basic guidance.<br>

<br>
</div>Having the driver look for std:: (or the mangling of std::) in linker strings and print a fixit saying that you should link to a C++ standard library would be a nice addition.<br>
<font color="#888888"><br>
David</font></blockquote></div><div><br></div>It should only do so when it can determine the file output is to be an executable. In that case, it should (depending on user settings) go a step further and add the missing linker option for the (user specified) C++ library itself.<br clear="all">
<div><br></div>-- <br>Alfonso Guerra<br>Apokalypse Software Corp.<br>