<div dir="ltr">I just install it by running "sudo apt-get install aspectc++" and also from <a href="http://www.aspectc.org/Download.2.0.html">http://www.aspectc.org/Download.2.0.html</a> (Linux/x86). I didn't compile it myself. <br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Heiko Nardmann</b> <span dir="ltr"><<a href="mailto:heiko.nardmann@itechnical.de">heiko.nardmann@itechnical.de</a>></span><br>
Date: 2014-03-12 14:54 GMT+08:00<br>Subject: Re: Fwd: [aspectc-user] How can I install AC++ on my computer?<br>To: Áõ¹û <<a href="mailto:joseph04912654@gmail.com">joseph04912654@gmail.com</a>><br><br><br>
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Did you only install a precompiled
      package or compile it yourself?<br>
      <br>
      Heiko<br>
      <br>
      Am 12.03.2014 05:27, schrieb Áõ¹û:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div>I re-install it , and </div>
        <div>"<br>
          <div>
            <div>hello.h:4: error: no include path in which to find
              `iostream'</div>
            <div>world.ah:4: error: no include path in which to find
              `iostream'</div>
            <div>
              error: Execution failed: "ac++" --config
              "/tmp/agxx_pcfgmyYwVs"  -p. -c "main.cc" -o
              "/tmp/main.cc_agxx_UuXA5Z"</div>
            <div>"</div>
            <div>came out when i run "ag++ -o main main.cc". And with
              "ag++ -o main main.cc --c_compiler /usr/bin/g++
              --ac_compiler /usr/bin/ac++" , I got the same message.</div>
          </div>
          <div><br>
          </div>
          <div>With use "ag++ -v 9 -o main main.cc" command , I got:</div>
          <div>"</div>
          <div>
            <div>* </div>
            <div>* </div>
            <div>* AG++ Configuration:</div>
            <div>*   Aspect C++ weaver:  ac++</div>
            <div>*   C++ compiler:       g++</div>
            <div>*   Files:               main.cc</div>
            <div>*   Options (G++):       -v -o "main"  -I "." </div>
            <div>*   Options (AC++):      -v9 -p.</div>
            <div>*   Options (total):     -v9 -v -o "main"  main.cc -I
              "."  -p.</div>
            <div>*   PumaConfig: 1 Weave: 1 Compile: 1 Link: 1</div>
            <div>* </div>
            <div>* </div>
            <div>* Generating Puma configuration file</div>
            <div>  - Parsing output of g++ compiler</div>
            <div>  - Executing: "g++"  -E -dM -v -x c++ "/dev/null"
              2>/tmp/agxx_stderr4eOGnr 1>/tmp/agxx_stdoutDA9RS3</div>
            <div>  - Exit: Success</div>
            <div>  - removing temporary file: /tmp/agxx_stdoutDA9RS3</div>
            <div>  - removing temporary file: /tmp/agxx_stderr4eOGnr</div>
            <div>  - Writing puma configuration file
              '/tmp/agxx_pcfgeHD3nG'</div>
            <div>* Weaving</div>
            <div>  - Executing: "ac++" --config "/tmp/agxx_pcfgeHD3nG"
               -v9 -p. -c "main.cc" -o "/tmp/main.cc_agxx_dH44TO"</div>
            <div>* Running ac++ 1.1</div>
            <div>* Handling Translation Unit `main.cc'.</div>
            <div>  - Path "main.cc"</div>
            <div>  - Inserting namespace AC</div>
            <div>  - Parsing ...</div>
            <div>hello.h:4: error: no include path in which to find
              `iostream'</div>
            <div>world.ah:4: error: no include path in which to find
              `iostream'</div>
            <div>  - Aborting</div>
            <div>error: Execution failed: "ac++" --config
              "/tmp/agxx_pcfgeHD3nG"  -v9 -p. -c "main.cc" -o
              "/tmp/main.cc_agxx_dH44TO"</div>
            <div>  - Exitcode: 256 (should be 0 )</div>
          </div>
          <div>"</div>
          <div><br>
          </div>
          <div>I think it just as same as first message , so I really do
            not know what to do now.  ;(</div>
          <div><br>
            <div class="gmail_quote">---------- Forwarded message
              ----------<br>
              From: <b class="gmail_sendername">Julian Rost</b> <span dir="ltr"><<a href="mailto:julian@rost.biz" target="_blank">julian@rost.biz</a>></span><br>
              Date: 2014-03-11 22:44 GMT+08:00<br>
              Subject: Re: [aspectc-user] How can I install AC++ on my
              computer?<br>
              To: Áõ¹û <<a href="mailto:joseph04912654@gmail.com" target="_blank">joseph04912654@gmail.com</a>><br>
              <br>
              <br>
              Hey,<br>
              <br>
              could you just try to install it with "sudo apt-get
              install aspectc++" from the commandline and look what
              happens now? Else try to use the --c_compiler `path to
              g++` and --ac_compiler `path to ac++` options at your ag++
              call. If further problems exist, try to use -v 9 to
              analyse your problems.<br>
              <br>
              Many greetings<br>
              Julian<br>
              <br>
              Am 2014-03-11 14:56, schrieb Áõ¹û:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                <div>
                  Hello ,<br>
                         I am a student of software engineering in
                  China, and my<br>
                  teacher asked us to do something with aspectc++. I am
                  using UBUNTU<br>
                </div>
                12.04 , so , I went to <a href="http://www.aspectc.org/" target="_blank">http://www.aspectc.org/</a>
                [1] and got the latest
                <div><br>
                  version(1.2  Linux/x86).  Then got the "aspectc++"
                  directory. But when<br>
                  I run "make" command in the directory, I got "no
                  include path path in<br>
                  which to find `iostream` " message. Also , I have
                  tried to install it<br>
                  by "sudo apt-get install apsectec++ " command, and run
                  "ag++ -o main<br>
                  main.cpp" (main.cpp is in
                  aspectc++/examples/helloworld directory) ,<br>
                  get the same message again, also with "ag++ -o main
                  main.cpp --include<br>
                  `iostream path` "! Could somebody tell me how can i
                  fix it ?  Thanks a<br>
                  lot.<br>
                  <br>
                </div>
                Links:<br>
                ------<br>
                [1] <a href="http://www.aspectc.org/" target="_blank">http://www.aspectc.org/</a><br>
                <br>
                _______________________________________________<br>
                aspectc-user mailing list<br>
                <a href="mailto:aspectc-user@aspectc.org" target="_blank">aspectc-user@aspectc.org</a><br>
                <a href="http://www.aspectc.org/mailman/listinfo/aspectc-user" target="_blank">http://www.aspectc.org/mailman/listinfo/aspectc-user</a><br>
              </blockquote>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</div><br></div>