[lttng-dev] [PATCH] Fix trace-collection.h: No such file or directory that build code with libbabeltrace
Hui Zhu
teawater at gmail.com
Thu Aug 23 02:11:54 EDT 2012
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 */
More information about the lttng-dev
mailing list