IBM Support

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

Technote (troubleshooting)


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


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"))) {



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.

Document information

More support for: Rational Test RealTime
Runtime Analysis: C++

Software version:, 8.0,,

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Reference #: 1609867

Modified date: 12 April 2013