[aspectc-user] weaving twice

Francisco Afonso afonsofc at hotmail.com
Wed Oct 24 12:50:24 CEST 2007


No, even defining -d ../aop-out I got the same error.Francisco

> Date: Wed, 24 Oct 2007 12:07:37 +0200
> From: Olaf.Spinczyk at informatik.uni-erlangen.de
> To: afonsofc at hotmail.com
> CC: aspectc-user at aspectc.org
> Subject: Re: [aspectc-user] weaving twice
> 
> 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
> >   
> 

_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20071024/9f770eae/attachment.html>


More information about the aspectc-user mailing list