Instrumenting code with namespace using std __attribute results in "error #130"

Technote (troubleshooting)


Problem(Abstract)

Attempts to instrument C++ code with IBM® Rational® Test RealTime™ (TestRT) result in error #130.

Symptom

The error message is as follows.

TestRT attolccp: "/x86_64-linux/usr/include/c++/4.3.4/x86_64-suse-linux/bits/c++config.h",line 1642: error #130:
      expected a "{"
 namespace std __attribute__ ((__visibility__ ("default"))) {

^

Cause

The cause is unknown.

Resolving the problem

Customize the TDP to solve this issue.



  1. Open the Target Deployment Port (xdp) with the Target Deployment Port.

  2. Go to Section Parser Settings > Header adaptation for C++ .

  3. Add the following line.

    #define __attribute__(x)







  4. Make a Save & Generate.


Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Test RealTime
Runtime Analysis: C++

Software version:

7.5.0.6, 8.0, 8.0.0.1, 8.0.0.2

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1609867

Modified date:

2013-04-12

Translate my page

Machine Translation

Content navigation