[aspectc-user] weaving twice
Olaf Spinczyk
Olaf.Spinczyk at informatik.uni-erlangen.de
Wed Oct 24 12:07:37 CEST 2007
Hi,
you compiled the application with "ac++ - I ../os/woven/include –I
../os/woven –p . –d ./aop-out". I would better use "-d../aop-out". The
destination directory should not be a subdirectory of the source
directory. Does that help?
- Olaf
Francisco Afonso wrote:
> Hi Olaf,
>
> In my case I am using Whole Program Transformation (WPT) and so the library includes are already being generated. I tried the –i option and confirmed that the generated included files are equal to generated by WPT.
>
> I will describe my setup. I am compiling the code of an operating system which is divided in the following folders:
>
> /os
> /base
> /include
> /src
> /aspects
>
> The aspects are placed in folder /aspects. From the /base folder I run ac++ using the following command:
>
> ac++ -I include –p. –d ../woven
>
> This generates the following structure:
>
> /os
> /base
> /include
> /src
> /aspects
> /woven
> /include
> /src
> /aspects
>
> Then I generate the library based on the source code inside the /woven folder. For this, I have a makefile in the /os folder that calls g++ using options “–I woven/include” and “ –I woven”. The second include is needed to access the .ah files in the /woven/aspects folder. After this step I have a library file (libos.a) in /os.
>
> Then, in another folder I have an application that needs to be woven too. This application is usually a single c++ file and I place the aspects in the same folder. The command line for weaving is:
> ac++ - I ../os/woven/include –I ../os/woven –p . –d ./aop-out
>
> The following output is generated:
> * Running ac++ 1.0pre3
> * Simple Dependency Check
> * Handling Translation Unit ´myApp.cc´
> make: ****[linuxaop] Segmentation fault
>
> Do you see something wrong?
>
>
> Francisco
> _________________________________________________________________
> Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>
More information about the aspectc-user
mailing list