[aspectc-user] Defining an Aspect Instantiation Model

Sergio Queiroz sergio at consiste.dimap.ufrn.br
Fri Aug 19 19:50:34 CEST 2005


Hi,

I am trying to define an aspect in such way that every instance of a class has
an different aspect instance associated.

I tried to follow the examples in the AspectC++ - A Language Overview and in
the AspectC++ Language Reference but they did not work :(

When I try to compile my example with "ag++ -o main main.cpp -Wall" I get the
following message:

myaspect.ah:9: warning: all member functions in class `MyAspect' are private
myclass.h:22: error: field `myInstance' has incomplete type
error: Execution failed: "g++" -xc++ "main.acc" -xnone -Wall -o "main"

So, the first line of the message is easy to avoid but I could not declare the
variable myInstance.

I am attaching my source code.

Sérgio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 201 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20050819/3b153d54/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myaspect.ah
Type: application/octet-stream
Size: 292 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20050819/3b153d54/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myclass.h
Type: text/x-chdr
Size: 199 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20050819/3b153d54/attachment.h>


More information about the aspectc-user mailing list