hi all,<br>i have a question, haw can i call a c++ function in aspectc++<br><br>-------------main.cc----------------------<br><br>void func1 ( ) { ... };<br>void func2 ( ) { ... };<br>int main ( ) {<br> func1 ( );<br>
//func2 ( ); <br>}<br><br>-----------test.ah--------------------<br><br>aspect test{ <br> advice execution("% func1 (...) ") : before () {<br> func2 ( ); <br>};<br><br>ac++ issues the error:<br>
error: `func2' undeclared here<br><br><br>----------------------- main2.cc-----------------<br><br>class Base1<br>{<br>public:<br> void ba1 ()<br> { <br> printf("Base2::b1 ()\n");<br>
}<br>}base1;<br><br>class Base<br>{<br>public:<br><br> int b2 (inti)<br> { inttemp = i;<br> return temp;<br> } <br>} *a ; <br><br>int main()<br>{<br> <br> a->b2(0);<br><br> //base1.b1(); same problem<br>
<br> return 0;<br>}<br><br>Thanks in advance,<br>du bin<br>