[aspectc-user] ElementCounter: `util' was not declared in this scope

Pablo Casado pabloc at thales.co.za
Fri Jul 8 10:13:10 CEST 2005


Hi,

I installed acdt-2.0.3 and went through the tutorial examples, all 
compiled and ran without problems using managed makefiles except for 
ElementCounter. The compiler errors are listed below.

I am using
eclipse 3.0.0
acdt-2.0.3
ac 0.9.3 (disabled the plugin in acdt)
mingw
windows xp (sp2)
The tutorial source files I extracted from aosd-2005-tut.zip

ag++ -r repo.acp -p .. -c ../main.cc
../ElementCounter2.ah:13: `util' was not declared in this scope
../ElementCounter2.ah:13: parse error before `::' token
../ElementCounter2.ah:19: `util' was not declared in this scope
../ElementCounter2.ah:19: parse error before `::' token
../ElementCounter2.ah:24: `util' was not declared in this scope
../ElementCounter2.ah:24: parse error before `::' token
../ElementCounter2.ah: In member function `void
   ElementCounter2::__a0_before(...)':
../ElementCounter2.ah:14: `queue' undeclared (first use this function)
../ElementCounter2.ah:14: (Each undeclared identifier is reported only 
once for
   each function it appears in.)
: In function `void
   AC::invoke_ElementCounter2_ElementCounter2_a0_before(JoinPoint*)':
:5: parse error before `::' token
: In function `void
   AC::invoke_ElementCounter2_ElementCounter2_a1_after(JoinPoint*)':
:10: parse error before `::' token
: In function `void
   AC::invoke_ElementCounter2_ElementCounter2_a2_after(JoinPoint*)':
:15: parse error before `::' token
error: Execution failed: ""g++" -c -xc++ "main.acc" -xnone"




More information about the aspectc-user mailing list