I did not included the generic header directly. I thought that this nested "extern C" is intended, however, according to your reply, this might be removed at all.
There is a remaining """ #ifdef _cplusplus } #endif """ at the end of "generic/rte_cycles.h". I think this should be removed. This causes compile error on C++. Keunhong. 2014-11-07 6:05 GMT+09:00 Thomas Monjalon <thomas.monjalon at 6wind.com>: > Hi, > > 2014-11-07 05:21, Keunhong Lee: > > I just pulled new patches from the master branch, and found that it > doesn't > > work with C++. > > > > in lib/librte_eal/common/include/generic/rte_cycles.h > > +#ifdef __cplusplus > > +extern "C" { > > +#endif > > It's already included in > lib/librte_eal/common/include/arch/x86/rte_cycles.h > which includes lib/librte_eal/common/include/generic/rte_cycles.h. > > You shouldn't include the generic header directly. > > -- > Thomas >