<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I'd like to use LTTng in the context of C++ projects. Unless I missed something, the trace provider iitself is always a "c" file, in the examples called tp.c (I use the 2.0.5. of the LTTng tools, linux kernel 3.1.10 and gcc/g++ 4.6.2).<br>
<br>
If I use a C++ file instead, e.g. by renaming the tp.c to tp.cpp, the compilation fails, since the two enumerations alloc and sync are defined within the scope of the lttng_ust_lib_ring_buffer_config structure and thus their literals are not found (there are
 additional problems, if I try to define these two enumerations on top level).<br>
<br>
Using a c file instead of a C++ is a bit problemaitc, since I am currently integrating LTTng into the Papyrus code generation and I do not like mixing the C and C++ code generation (although possible).<br>
<br>
Is there a know work-around or upcoming solution to declare a tracepoint and compile it with g++ ?<br>
<br>
Best regards<br>
<br>
Ansgar<br>
<br>
</div>
</body>
</html>