Re: Linkage problem when compiling C++ program
Bram Moolenaar <[email protected]> Mon, 29 Aug 2005 14:43:16 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Hugues Cassé wrote:
> I'm compiling a C++ program on a Linux machine. The compilation works
> well but the linkage use the link command for simple C program. When I
> run AAP, it produces the following link command (this is an excerpt from
> the log file) :
It works fine for me. When a C++ source file is compiled the
buildaction attribute is set to "cxx_build". This will be passed to
the link step and the cxx_build action is invoked (this is defined in
the default.aap recipe).
Note that this problem does appear when no source file was changed.
That's a known problem. The buildaction attribute isn't set then. You
can verify this by deleting one of the .o files and running Aap again.
I'm afraid a solution is not simple. We would probably need to store
attributes on a .o file in the signature file.
--
"Computers in the future may weigh no more than 1.5 tons."
Popular Mechanics, 1949
/// 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 LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf