[aspectc-user] Errors in cpp when using 3rd party lib

Jannis Stoppe jstoppe at informatik.uni-bremen.de
Wed Jul 9 17:01:41 CEST 2014


Hi again...

With a minimal example working, I've stumbled right into the next error
I'm having a hard time fixing.

Basically, I have enriched my simple helloWorld.cpp with
#include<systemc.h> to start using aspectc++ for my systemC project.
This is what I get:

ag++ -o output ./helloWorld.cpp -I ~/systemc-2.3.1/src/

/usr/include/c++/4.8/cstdlib:179: error: invalid declaration near token
`abs'
/usr/include/c++/4.8/limits:1405: error: `__int128' undeclared here
/usr/include/c++/4.8/limits:1410: error: invalid member declaration near
token `min'
/usr/include/c++/4.8/limits:1478: error: invalid declaration near token
`template'
error: Execution failed: "ac++" --config "/tmp/agxx_pcfgxa23bH"  -I
"/home/jannis/systemc-2.3.1/src/"  -p. -c "./helloWorld.cpp" -o
"/tmp/helloWorld.cpp_agxx_DDyE2b"

I'm kind of lost. The first error can be googled and hints at a problem
people had compiling aspectc++ after gcc got updated (which isn't really
my use case). The other errors don't really give any meaningful results
at all. gcc --version gives me

gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2

So, sorry for bothering everyone with quite particular problems again,
but I'm really at a loss here. Thanks in advance.
Jannis



More information about the aspectc-user mailing list