Commit | Line | Data |
---|---|---|
5e0cbfb0 PP |
1 | --- |
2 | id: cxx-application | |
3 | --- | |
4 | ||
5 | Because of C++'s cross-compatibility with the C language, C++ | |
6 | applications can be readily instrumented with the LTTng-UST C API. | |
7 | ||
8 | Follow the [C application](#doc-c-application) user guide above. It | |
9 | should be noted that, in this case, tracepoint providers should have | |
10 | the typical `.cpp`, `.cxx` or `.cc` extension and be built with `g++` | |
11 | instead of `gcc`. This is the easiest way of avoiding linking errors | |
12 | due to symbol name mangling incompatibilities between both languages. |