[aspectc-user] projects with C code

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Tue Jan 16 11:26:44 CET 2007


Hi,

Francisco Afonso wrote:
> Hi all,
> 
> My project has some C code and I have some questions about how to deal
> with C and AspectC++.
> 
> The last time I worked with AspectC++ I was using version 0.9.3 and it
> worked fine. I did not used ac++ to weave into .c files. Instead, I
> copied the .c files into the woven directory. As for the .h files used
> for this C code I had no problem as they weren´t changed by ac++.
> 
> But in this new version (1.0pre3) I noticed a different weaver behavior:
> Ac++ is adding the "ag.h" code (namespace AC {... ) in all include
> files, and then I got several errors when compiling the .c files.
> 
> Is there any solution to control the weaving into .h files used by C code?

for now it might help you to put these header and C implementation files
into a different directory. ac++ assumes that only files in a directory
mentioned by a -p option belong the project. Other files are never
modified, although they can be included and used.

> Will it be possible to weave with C code in future versions?

Yes. We are working on it.

Olaf



More information about the aspectc-user mailing list