IBM Support

__thread results in error: explicit type is missing

Troubleshooting


Problem

Attempts to instrument C/C++ code using IBM Rational Test RealTime result in warning: "explicit type is missing ("int" assumed)", and possibly additional warnings and/or errors.

Symptom

You get messages similar to the following when you build your application.

Note: The exact errors may vary, depending on the exact syntax of the affected line of code:

TestRT attolccp: "some_file.h",line 1049: warning #260-D:

       explicit type is missing ("int" assumed)

  extern __thread char some_buffer[buffer_size];

         ^

TestRT attolccp: "some_file.h",line 1049: error #65:

expected a

       ";"

  extern __thread char some_buffer[buffer_size];

                  ^

TestRT attolccp:

"another_file.h",line 154:

error #20:

       identifier "some_buffer" is undefined

[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Runtime Analysis","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF010","label":"HP-UX"},{"code":"PF002","label":"AIX"}],"Version":"7.5.0.6;7.5.0.5;7.5.0.4;7.5.0.3;7.5.0.2;7.5.0.1;7.0.5.1;7.0.5;7.0.0.1;7.5;7.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21575672