From: Bruce Richardson Subject: Re: [PATCH] Minor C++11 compilation fix for rte_pci.h Date: Fri, 13 Feb 2015 10:17:33 +0000 Message-ID: <20150213101732.GA13304@bricha3-MOBL3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Mcnamara, John" Return-path: Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Fri, Feb 13, 2015 at 08:25:38AM +0000, Mcnamara, John wrote: > > -----Original Message----- > > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Stefan Puiu > > Sent: Wednesday, February 11, 2015 8:51 AM > > To: dev-VfR2kkLFssw@public.gmane.org > > Subject: [dpdk-dev] [PATCH] Minor C++11 compilation fix for rte_pci.h > > > > In C++11 concatenated string literals need to have a space in between. > > clang 3.4 reports this as an error (and IIRC also gcc-4.8): > > > > dpdk/include/rte_pci.h:96:26: error: invalid suffix on literal; C++11 > > requires a space between literal and identifier [-Wreserved-user-defined- > > literal] > > Hi Stefan, > > That concatenated string literal with PRI* is used in 65 files in the DPDK source. Is that the only compilation error that you got? > > John It should only be a problem in header files. The C files for DPDK source are always to be compiled up with a C compiler - only the headers get included in application C++ code. /Bruce