Re: linking C++ object files
Bram Moolenaar <[email protected]> Mon, 29 Nov 2004 17:23:17 +0100
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Luc Hermitte wrote:
> > > > > BTW, is there an AAP compiler-plugin for vim somewhere ?
> > > [...]
> > > but I was wondering if a more complete solution already exist.
> >
> > It could be useful, I suppose. If you can write a first version of an
> > Aap compiler plugin I can include it with Vim.
>
> I've started working on something. But it cannot be a plain aap
> compiler-plugin.
> The problem is we sometimes need to apply different filters on the
> output of :make. For instance: a filter for aap (or (g)make, or bjam, or
> scons, or ant, or ...), a filter for GCC (because the link errors are
> not displayed), a filter for the test unit framework used, a filter for
> cygwin, a filter for doxygen, ...
The 'errorformat' option is able to handle several error formats at the
same time. You can put very strict formats first, then less strict
ones. The first one that matches is used.
> What is the real `current_compiler' ? It is quite impossible to tell.
> With the cygwin compiler-plugin I'm maintaining, I've tried to answer
> this question. But the answer is not very good, and not really
> "scalable". Moreover, when we load a compiler-plugin that reset
> current_compiler, we need to reload compiler/cygwin.vim. It is not very
> handy.
It would get complicated if we make compiler-plugin-addons. You
probably need a way to use the existing compiler plugins and combine the
results. Since the method to combine them depends on the ordering,
there is no generic solution.
I suppose you could make an "aap with cygwin and doxygen" compiler
plugin that loads the cygwin and doxygen compiler plugins and combines
the pieces. You still need to make a plugin for every combination you
use.
--
Another bucket of what can only be described as human ordure hits ARTHUR.
ARTHUR: ... Right! (to the KNIGHTS) That settles it!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/