[aspectc-user] trouble with c std includes solaris

Danilo Beuche danilo.beuche at pure-systems.com
Wed May 28 20:40:43 CEST 2003

Joakim Bodin wrote:
> 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 
> declaration
> /usr/include/stdio_impl.h:50: error: invalid member declaration near 
> token `:'
> /usr/include/stdio_impl.h:51: error: invalid member declaration near 
> token `:'
> /usr/include/stdio_impl.h:52: error: invalid member declaration near 
> token `:'
> 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.
> /Joakim
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
Hello Joakim,

yes, this is a known error. 0.7pre2 has been tested sucessfully on
Solaris 2.6, which uses a different stdio. It has been filed as Bug #29
( http://www.aspectc.org/bugzilla/show_bug.cgi?id=29 ) in Bugzilla and
is fixed in version 0.7 (which has not been released yet :-( ).


Danilo Beuche                           Phone: +49-391-54456910
pure-systems GmbH                       Fax:   +49-391-54456990

More information about the aspectc-user mailing list