[aspectc-user] How to use aspectc++ in C?
Olaf.Spinczyk at informatik.uni-erlangen.de
Wed Mar 5 17:09:49 CET 2003
On Wednesday 05 March 2003 16:56, Peer Haja wrote:
> Hi all,
> I just installed aspectc++-0.6 for Solaris. I have no
> problems with the examples. But how do I apply this in
> a set of C files? I copies one of the example to a new
> directory and rename file XX.cc to XX.c and modified
> the syntax from C++ to C. ac++ would not generate any
> derived source files.
AspectC++ expects (A)C++ input files, not C. This means that you might get
some trouble because of the differences between C and C++. Nevertheless, your
filename extension problem can be solved with the "-e" option. AspectC++
parses all .cc files of your project by default. If you want something else,
e.g. .c, use
ac++ -e c ...
More information about the aspectc-user