[aspectc-user] trouble with c std includes solaris
joabo552 at student.liu.se
Wed May 28 15:24:33 CEST 2003
Hi, my name is Joakim Bodin and I'm trying to use Aspectc C++ on
Solaris 2.8/8 with gcc-3.2. I'm having trouble weaving my aspect with
my "normal" code because of ac++ erroring out on some std c header
includes (stdio.h, stdlib.h) when it's trying to weave. I don't know if
this is a known error but I haven't been able to find anything about it
in mailing list archive so I'm asking here.
ac++ -v1 -a testcase/append-aspect.ah
-e c -p testcase/ -d testcase-out -I/usr/include -Itestcase
* Running AspectC++ 0.7pre2
* Simple Dependency Check
* Handling Translation Unit `List.c'.
/usr/include/iso/stdlib_iso.h:84: error: invalid type specified in
/usr/include/stdio_impl.h:50: error: invalid member declaration near
/usr/include/stdio_impl.h:51: error: invalid member declaration near
/usr/include/stdio_impl.h:52: error: invalid member declaration near
Where List.c is a simple linked list written in a C subset of C++ and
append-aspect.ah has an around advice for a function in List.c.
More information about the aspectc-user