From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk-Holger Lenz Subject: g++ applications doesn't compile anymore when dpdk header files are included Date: Wed, 01 Jul 2015 18:34:00 +0200 Message-ID: <55941678.3000806@ng4t.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable To: dev@dpdk.org Return-path: Received: from mail.ud15.udmedia.de (ud15.udmedia.de [194.117.254.55]) by dpdk.org (Postfix) with ESMTP id CFA583772 for ; Wed, 1 Jul 2015 18:34:01 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello, the g++ complains the following problems when rte_xxxx.h header files=20 are included: ....x86_64-native-linuxapp-gcc/include/rte_common.h:95:59: warning:=20 invalid conversion from =E2=80=98void*=E2=80=99 to =E2=80=98rte_mempool_o= bjhdr*=E2=80=99.... this=20 appears in multiple flavours -as a workaround the '-fpermissive' option of the g++ may be used but=20 that's not nice. ....x86_64-native-linuxapp-gcc/include/generic/rte_cpuflags.h:50:6:=20 error: use of enum =E2=80=98rte_cpu_flag_t=E2=80=99 without previous decl= aration enum=20 rte_cpu_flag_t; ....x86_64-native-linuxapp-gcc/include/generic/rte_cpuflags.h:55:6:=20 error: use of enum =E2=80=98cpu_register_t=E2=80=99 without previous decl= aration enum cpu_register_t; ....x86_64-native-linuxapp-gcc/include/generic/rte_cpuflags.h:104:31:=20 error: use of enum =E2=80=98rte_cpu_flag_t=E2=80=99 without previous decl= aration=20 rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature); -as a workaround the file=20 'lib/librte_eal/common/include/generic/rte_cpuflags.h' may be modified: remove or uncomment the following lines: line 50: //enum rte_cpu_flag_t; line 55: //enum cpu_register_t; lines 103/104: //static inline int //rte_cpu_get_flag_enabled(enum=20 rte_cpu_flag_t feature); Best regards Dirk --=20 Dirk-Holger Lenz +49 157 848 09099 dirk.lenz@ng4t.com ng 4 T Telecommunication Technology Testing Tools ng4T GmbH Siemensdamm 50 13629 Berlin Germany www.ng4t.com +49 30 65218530 Berlin-Charlottenburg, HRB 123546 CEO Dr. Andreas Kallmann