[lttng-dev] [PATCH] Fix trace-collection.h: No such file or directory that build code with libbabeltrace

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Aug 23 08:08:38 EDT 2012


merged, thanks!

Mathieu

* Hui Zhu (teawater at gmail.com) wrote:
> Hi,
> 
> After I install the babeltrace and try to build a code, I got this:
> gcc -Wall  -g 1.c -lbabeltrace -lbabeltrace-ctf
> In file included from 1.c:11:0:
> /usr/local/include/babeltrace/babeltrace.h:23:41: fatal error:
> babeltrace/trace-collection.h: No such file or directory
> compilation terminated.
> 
> I check the code,looks most of function of trace-collection.h is
> covered by context.h.
> 
> So I post a patch for it.  Wish you like it.
> 
> Thanks,
> Hui
> 
> --- a/include/babeltrace/babeltrace.h
> +++ b/include/babeltrace/babeltrace.h
> @@ -20,7 +20,6 @@
>  #include <babeltrace/context.h>
>  #include <babeltrace/format.h>
>  #include <babeltrace/iterator.h>
> -#include <babeltrace/trace-collection.h>
>  #include <babeltrace/trace-handle.h>
> 
>  #endif /* _BABELTRACE_H */
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list