[aspectc-user] Starting with aspectC

Taha Rehman Siddiqui trsiddiqui1989 at gmail.com
Fri May 27 23:36:07 CEST 2016


Hello,
I am trying to get execution traces for a piece of C code for which I want
to use aspectC. For now, I am trying to run the example code on windows,
after installing cygwin and minGW with gcc libraries, but I keep getting
the below error when I try executing "ag++ main.cc -o hello.exe" in command
prompt and powershell. Please note that compiling with g++ works as it
should.

error: unknown target triple '--windows-gnu', please use -triple or -arch
error: Execution failed: ""ac++" --system-config
"C:\Users\trsid\AppData\Local\Temp\agx269A.tmp"  -p. -c "main.cc" -o
"C:\Users\trsid\AppData\Local\Temp\mai26EB.tmp""

​However executing in cygwin terminal gives the following additional errors.

In file included from <built-in>:6:
In file included from <command line>:258:
./world.ah:4:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
In file included from main.cc:1:
./hello.h:4:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
error: Execution failed:
""C:\Users\trsid\Downloads\ac-bin-win-x86-64bit-2.0\aspectc++\examples\helloworld\ac++"
--system-config "C:\cygwin64\tmp\agx7C.tmp"  -p. -c "main.cc" -o
"C:\cygwin64\tmp\maiBD.tmp""


In all the terminals, I see a not responding error window "The AspectC++
Compiler has stopped working". Event viewer doesn't give much information
of this failed event too.

Fault bucket 120424385246, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: ac++.exe
P2: 1.0.0.4
P3: 00000409
P4: ac++.exe
P5: 1.0.0.4
P6: 00000409
P7: c0000005
P8: 00000000008846d6
P9:
P10:

Attached files:
C:\Users\trsid\AppData\Local\Temp\WER502F.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WER5BE8.tmp.csv
C:\Users\trsid\AppData\Local\Temp\WER5BF8.tmp.appcompat.txt
triagedump.dmp
C:\Users\trsid\AppData\Local\Temp\WER5C48.tmp.WERDataCollectionFailure.txt



Best,
​Sid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20160527/d69b781a/attachment.html>


More information about the aspectc-user mailing list