[aspectc-user] Re: How to use aspectc++ in C?
Peer Haja
peerhaja at yahoo.com
Fri Mar 7 01:00:06 CET 2003
Olaf,
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?
Thanks,
Peer
--- 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
> 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.
> >
> > 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 ...
>
> Yours,
>
> Olaf
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
More information about the aspectc-user
mailing list