[aspectc-user] Newbie needs help
Marko Bozikovic
bozho at kset.org
Tue Nov 16 20:13:43 CET 2004
Olaf Spinczyk wrote:
> Hi Marko,
>
> -snip-
> try it again with include guards (#ifndef __main_ah__ .. #define
> __main_ah__ .. code .. #endif) in all your header and aspect header files.
Hi Olaf,
Thanks for the quick reply.
I forgot that I have to put guards in the aspect code as well :) Now weaving
passes ok, but compilation fails:
a.h: In constructor `A::A()':
a.h:3: error: `TJP__ZN1AC1Ev' undeclared (first use this function)
a.h:3: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.h:3: error: `Binding_TJP__ZN1AC1Ev_CounterA_CounterA_a0_after' undeclared
(first use this function)
a.h:3: error: `tjp__ZN1AC1Ev' undeclared (first use this function)
a.h: In member function `void A::exec()':
a.h:3: error: `TJP__ZN1A4execEv' undeclared (first use this function)
a.h:3: error: `Binding_TJP__ZN1A4execEv_CounterA_CounterA_a1_after' undeclared
(first use this function)
a.h:3: error: `tjp__ZN1A4execEv' undeclared (first use this function)
: In copy constructor `A::A(const A&)':
:5: error: `TJP__ZN1AC1ERK1A' undeclared (first use this function)
:5: error: `Binding_TJP__ZN1AC1ERK1A_CounterA_CounterA_a0_after' undeclared
(first use this function)
:5: error: `tjp__ZN1AC1ERK1A' undeclared (first use this function)
My compiler is gcc 3.3.5, and I'm using ag++ -v 9 main.cpp
There are 3 source files: a.h that defines class A (it's simple, described in
my original message), main.ah with aspect code and main.cpp that creates one
object of class A and calls exec() 3 times...
I can attach all 3 source code files, I don't know what's the list's policy
about attachments in mails...
TIA,
--
Marko
ICQ: 5990814
I'm not under the alkafluence of inkahol
that some thinkle peep I am.
It's just the drunker I sit here the longer I get.
More information about the aspectc-user
mailing list