From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix c++ compilation issue with rte_delay_us() Date: Wed, 05 Oct 2016 11:23:13 +0200 Message-ID: <1492896.7EzNbMBhFc@xps13> References: <1475515645-24667-1-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Konstantin Ananyev Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 215AB2B8D for ; Wed, 5 Oct 2016 11:23:16 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id f193so216817731wmg.0 for ; Wed, 05 Oct 2016 02:23:16 -0700 (PDT) In-Reply-To: <1475515645-24667-1-git-send-email-konstantin.ananyev@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-10-03 18:27, Konstantin Ananyev: > When compiling with C++, it treats > void (*rte_delay_us)(unsigned int us); > as definition of the global variable. > So further linking with librte_eal fails. > > Fixes: b4d63fb62240 ("eal: customize delay function") Applied, thanks I don't understand why it was not failing with C compilation?