[aspectc-user] Unterminated `#include' directive

J. Liebig joerg.liebig at st.ovgu.de
Wed Jul 23 13:40:43 CEST 2008


Hi,

I'm using the ac++ compiler together with a self-build cross-compiler 
for avr-mikroprocessors.
At first I created the configuration file with:
ag++ --c_compiler /tools/avr/prefix/bin/avr-g++ --gen_config

Afterwards I wanted to apply a test-aspect to my sources. The aspect 
contains:
#ifndef __BASE_AH__
#define __BASE_AH__

#include "Uart.h"
extern Uart u;

aspect Base_Aspect {
    advice call("% Base::run(...)") : before() {
        u << "before Base::run\n";
    }
};

#endif

I invoke the ac++ compiler with the following options (Makefile):
TARGETOUT=../output

ACC=ac++
ACCOPTS=-v9 -k --extension cpp --config ${HOME}/da/output/puma_avr.config
ACCOPTS+=-p . -d ${TARGETOUT}

all:
    ${ACC} ${ACCOPTS}


---
Within the output the following lines occur and the compiler-run stops:
....
  - Inserting namespace AC
  - Parsing ...
base_run.ah:13: error: Unterminated `#include' directive

Depending on the content of the ah-file I also got:
base_run.ah:9: error: Unterminated `#define' directive

---
The aspect with little changes together with ac++ and g++ (version 4.2.3 
x86)
pretty fine.

Where is my fault?

kind regards
Jörg Liebig



More information about the aspectc-user mailing list