[aspectc-user] AC++ --aspect_header and -p problems

Guilherme . guibufolo at gmail.com
Fri Apr 15 12:50:20 CEST 2011


Hi!

Although not stated in the documentation it seems that an aspect
header MUST be in a path provided by the -p option even when using the
--aspect_header option. This seems to be a bug (or at least missing in
the documentation). To reproduce this do following

touch simple_aspect.ah
echo -ne aspect simple_aspect{\\n}\; > simple_aspect.ah
mkdir source
echo -ne int main\(int,char**\){\\nreturn 0\;\\n} > source/main.cpp
cd source
ag++ -c main.cpp -a ../simple_aspect.ah -p .

This should produce the message:

../simple_aspect.ah:1: error: invalid declaration near token `simple_aspect'
error: Execution failed: "ac++" --config "/tmp/agxx_pcfgCp4qEU"  -a
"../simple_aspect.ah"  -p "."  -c "main.cpp" -o
"/tmp/main.cpp_agxx_I3Nle8"

whereas

ag++ -c main.cpp -a ../simple_aspect.ah -p ..

works perfectly.

Is this a bug or intended (but undocumented behaviour)?

Greetings,
Guiherme



More information about the aspectc-user mailing list