[dpdk-dev] [PATCH 2/2] eal: Fix compilation on C++
Thomas Monjalon
thomas.monjalon at 6wind.com
Mon Aug 17 17:29:18 CEST 2015
2015-07-03 21:51, Joongi Kim:
> * Forward declaration of enum in C++ requires explicit underlying
> type definitions.
>
> * This fixes the issue at:
> http://dpdk.org/ml/archives/dev/2015-April/017065.html
>
> Signed-off-by: Joongi Kim <joongi at an.kaist.ac.kr>
Does the problem appear only with rte_hash_crc.h inclusion?
The reported errors were:
include/generic/rte_cpuflags.h:50:6:
error: use of enum ‘rte_cpu_flag_t’ without previous declaration
enum rte_cpu_flag_t;
include/generic/rte_cpuflags.h:55:6:
error: use of enum ‘cpu_register_t’ without previous declaration
enum cpu_register_t;
> lib/librte_eal/common/include/arch/x86/rte_cpuflags.h | 4 ++--
> lib/librte_eal/common/include/generic/rte_cpuflags.h | 12 ++++++++++--
Do we need to update lib/librte_eal/common/include/arch/ppc_64/rte_cpuflags.h
and lib/librte_eal/common/include/arch/tile/rte_cpuflags.h as well?
Thanks
More information about the dev
mailing list