[dpdk-dev] [PATCH] Minor C++11 compilation fix for rte_pci.h

Mcnamara, John john.mcnamara at intel.com
Fri Feb 13 09:25:38 CET 2015


> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stefan Puiu
> Sent: Wednesday, February 11, 2015 8:51 AM
> To: dev at dpdk.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


More information about the dev mailing list