From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FF43A0553; Mon, 17 Feb 2020 15:40:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A2D471DA9F; Mon, 17 Feb 2020 15:40:05 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id E83C51DA9E for ; Mon, 17 Feb 2020 15:40:03 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 06:40:02 -0800 X-IronPort-AV: E=Sophos;i="5.70,453,1574150400"; d="scan'208";a="228438471" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.79]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Feb 2020 06:40:01 -0800 Date: Mon, 17 Feb 2020 14:39:58 +0000 From: Bruce Richardson To: Victor Huertas Cc: dev@dpdk.org Message-ID: <20200217143958.GA866@bricha3-MOBL.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Subject: Re: [dpdk-dev] Proposal to add a new toolchain for dpdk: g++ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Feb 17, 2020 at 11:01:21AM +0100, Victor Huertas wrote: > Hi all, > > I am using DPDK development environment to develop an application from > which I have to access C++ code. > I managed to modify some internal mk files in the dpdk-stable repository to > allow g++ compiler to be supported. > > I have all the modified files well identified and I wonder if the support > team is interested to add this toolchain in future DPDK releases. > Rather than trying to build DPDK with g++, or to use the DPDK makefiles with your C++ application, can I recommend instead that you treat DPDK as any third-party library and build it independently of your application. If you compile and install DPDK using meson and ninja - or install the DPDK package from your linux distro - you will have a 'libdpdk.pc' file installed for use by pkg-config. Then for building your application, put in the relevant calls to pkg-config i.e. 'pkg-config --cflags libdpdk' and 'pkg-config --libs libdpdk', into your app makefile and work from there. Note too, that all DPDK header files should already be safe for inclusion in C++ code - if not, please log a bug. Regards, /Bruce