[PATCH v3 1/1] eal: add C++ include guard in generic/rte_vect.h

Tyler Retzlaff roretzla at linux.microsoft.com
Tue Apr 2 18:19:23 CEST 2024


On Sun, Mar 17, 2024 at 08:44:15PM -0600, Ashish Sadanandan wrote:
> The header was missing the extern "C" directive which causes name
> mangling of functions by C++ compilers, leading to linker errors
> complaining of undefined references to these functions.
> 
> Also updated the coding style contribution guideline with a new
> "Language Linkage" section stating `extern "C"` block should be added to
> public headers.
> 
> Fixes: 86c743cf9140 ("eal: define generic vector types")
> Cc: nelio.laranjeiro at 6wind.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ashish Sadanandan <ashish.sadanandan at gmail.com>
> ---
Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>



More information about the stable mailing list