From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: Bugs in newest patches Date: Thu, 06 Nov 2014 22:05:26 +0100 Message-ID: <1808251.0PKkz7l9rY@xps13> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Keunhong Lee Return-path: 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" Hi, 2014-11-07 05:21, Keunhong Lee: > I just pulled new patches from the master branch, and found that it doesn't > work with C++. > > in lib/librte_eal/common/include/generic/rte_cycles.h > +#ifdef __cplusplus > +extern "C" { > +#endif It's already included in lib/librte_eal/common/include/arch/x86/rte_cycles.h which includes lib/librte_eal/common/include/generic/rte_cycles.h. You shouldn't include the generic header directly. -- Thomas