-
Couldn't load subscription status.
- Fork 90
Description
Hi
I used Click before and wrote some Elements as a package according to this document in the click:
There are two ways to add an element class to Click: in the main Click collection, or in a package. We recommend that you use packages for nontrivial collections of elements. It has several advantages -- for example, it will keep your code separate from the main Click code. Check out the sample package in 'etc/samplepackage'.
so I use the sample package and wrote my elements.
now i want to use fast click.
i use dpdk in my project and now when i compile my package element, i see this error.
In file included from /root/fastclick/include/click/array_memory.hh:3,
from /root/fastclick/include/click/vector.hh:4,
from /root/fastclick/include/click/args.hh:5,
from testelement.cc:20:
/root/fastclick/include/click/glue.hh:103:14: fatal error: rte_cycles.h: No such file or directory
#include <rte_cycles.h>
^~~~~~~~~~~~~~
I think the reason of problem is that when i include glue.hh in package element, when compiler goes to glue.hh and reaches to rte function cant find them, because in configure and makefile of package element we don't link them (i don't need them in package element)
i link fastclick with dpdk with configure flags but in sample package i don't know how to do this.
any idea how to fix this?
thanks.