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