Hi!<br><br>when using the option gen_size_type to create a operator new that uses a custom size type for cross compiling i get following error:<br><br>ag++ -v9 --gen_size_type="\"long unsigned int\"" main.cpp -o main<br>

* <br>* <br>* AG++ Configuration:<br>*   Aspect C++ weaver:  ac++<br>*   C++ compiler:       g++<br>*   Files:               main.cpp<br>*   Options (G++):       -v -I "."  -o "main" <br>*   Options (AC++):      -v9 --gen_size_type="long unsigned int" -p.<br>

*   Options (total):     -v9 -v --gen_size_type="long unsigned int" main.cpp -I "."  -o "main"  -p.<br>*   PumaConfig: 1 Weave: 1 Compile: 1 Link: 1<br>* <br>* <br>* Generating Puma configuration file<br>

  - Parsing output of g++ compiler<br>  - Executing: "g++"  -E -dM -v -x c++ "/dev/null" 2>/tmp/agxx_stderrGzhsj8 1>/tmp/agxx_stdoutSM76cu<br>  - Exit: Success<br>  - removing temporary file: /tmp/agxx_stdoutSM76cu<br>

  - removing temporary file: /tmp/agxx_stderrGzhsj8<br>  - Writing puma configuration file '/tmp/agxx_pcfggiCN6P'<br>* Weaving<br>  - Executing: "ac++" --config "/tmp/agxx_pcfggiCN6P"  -v9 --gen_size_type="long unsigned int" -p. -c "main.cpp" -o "/tmp/main.cpp_agxx_Ki14TM"<br>

* Running ac++ 1.0<br>* Handling Translation Unit `main.cpp'.<br>  - Path "main.cpp"<br>  - Inserting namespace AC<br>  - Parsing ...<br><anonymous unit>:67: error: `operator new' already defined<br>

test.ah:8: error: `execution' undeclared here<br>  - Aborting<br>error: Execution failed: "ac++" --config "/tmp/agxx_pcfggiCN6P"  -v9 --gen_size_type="long unsigned int" -p. -c "main.cpp" -o "/tmp/main.cpp_agxx_Ki14TM"<br>

<br>Both files are really simple:<br><br>cat test.ah<br><br>#ifndef __SIMPLE_H__<br>#define __SIMPLE_H__<br><br>#include <stdio.h><br><br>aspect simple{<br>    advice call("%main%") : before(){<br>        printf("test\n");<br>

    }<br>}<br>#endif<br><br>cat main.cpp <br><br>int main(int, char**){<br><br>    return 0;<br>}<br><br>How do i get around this error?<br><br>I need this for when compiling an application with headers created with the -i option. There i receive the same error.<br>

<br>Cheers, <br>Guilherme<br>