[aspectc-user] Re: How to use aspectc++ in C?
peerhaja at yahoo.com
Fri Mar 7 01:00:06 CET 2003
Thank you. The flag "-e c" works. Unfortunately, the
aspect is still translated into C++ class.
My current project involves an embedded system written
in C code. What i am really interested is something
that can process C source code instead of C++ for now.
Can aspectc++ process and generate pure C code?
--- Olaf Spinczyk
<Olaf.Spinczyk at informatik.uni-erlangen.de> wrote:
> Hi Peer,
> On Wednesday 05 March 2003 16:56, Peer Haja wrote:
> > Hi all,
> > I just installed aspectc++-0.6 for Solaris. I have
> > problems with the examples. But how do I apply
> this in
> > a set of C files? I copies one of the example to a
> > directory and rename file XX.cc to XX.c and
> > the syntax from C++ to C. ac++ would not generate
> > derived source files.
> > Thanks,
> > Peer
> 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 ...
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
More information about the aspectc-user