Re: Linkage problem when compiling C++ program

Cassé Hugues <[email protected]> Mon, 29 Aug 2005 14:59:06 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
  Thank you: it solves my problem. I'm new to AAP and I'm currently 
porting my own project from Auto* tools to AAP.
Perhaps, should the cxx_attribute attribute migrates upward (from 
.o:.cpp to program:.o) even if there is no action performed.

  Thank you once more, H. Cassé

Bram Moolenaar wrote:

>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.
>
>  
>
casse.vcf (text/x-vcard, 265 B)
begin:vcard
fn;quoted-printable:Hugues Cass=C3=A9
n;quoted-printable:Cass=C3=A9;Hugues
org:IRIT-UPS;TRACES
adr:;;118 route de Narbonne;Toulouse;;31062;France
email;internet:[email protected]
title:MCF
tel;work:05 61 55 63 60
version:2.1
end:vcard