[cfe-dev] RFC: Clang driver redesign
Alfonso Guerra
hupernikon at gmail.com
Wed Nov 9 18:15:34 PST 2011
On Wed, Nov 9, 2011 at 10:00 AM, David Chisnall <csdavec at swan.ac.uk> wrote:
> On 9 Nov 2011, at 14:50, Christopher Jefferson wrote:
>
> > True. I'm not sure of the best way of handling this.
> >
> > 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.
>
> 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.
>
> David
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.
--
Alfonso Guerra
Apokalypse Software Corp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111109/4c280dca/attachment.html>
More information about the cfe-dev
mailing list