From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 69C26A09FF; Tue, 29 Dec 2020 20:42:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C0C4A2B91; Tue, 29 Dec 2020 20:42:00 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by dpdk.org (Postfix) with ESMTP id F2C972B8C for ; Tue, 29 Dec 2020 20:41:59 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id l23so2050828pjg.1 for ; Tue, 29 Dec 2020 11:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FZiSNhPRphLeCNx7Gk2YmtgfFfp5o/shLEBYobsPfUg=; b=gQNNPyPlivRYRPLvHWC2YEkHZogiuSZ8MeP78Xa2c+qkA8tvi6dGg/9PwV0DSUsNGK 32q1MmYZvPuOiBbPKOtih+le8IBBJuEZOSwF25s/wJPdCCcD8hgBZjpOtuNHQVrKDAhO dQ5SUz+5nfSbHD6ftxJqv0m27oxuVh97BwCnQ/6N+14w/eoTaPtxdZ2Mi2BEkReFUUfa xOZx4qw+4kEJOMLDlmMmZfmaqx1dT000/mLAGSol7jFJX4Rj03XWxmZIt0sC8xkoRrtW oWKNahx3OHl3+F32QpBFaNJKLqCM4i6M1xCq0YwiPSvw93ksKIQnuug0LSlCko94aAwt 4yFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FZiSNhPRphLeCNx7Gk2YmtgfFfp5o/shLEBYobsPfUg=; b=AReJbFqsJ8t9TNI7H/ToCegkrsqSZo94HctnjuocT7p/2onMdzjS/zlp9Jc3B2XpdR dhxqjKIPTqFKYLW5sTCKTbByE+s1Qp14R2/i/I/Hv44cnm/kgY20BGQtHunaghQaw+8z ftRKqAu/R6AEOgthq3+Jvyx5uiBJGa1E1Foz0px3Zsm7FdWiPT20IuZ76b/nHha32YBi rS1vm80zRVhewm/iES6tHZ6Kp9dRL2Cy93XD4ViJcOFQRWm92wOx7zPr460vgGUxoW5G mTy1J7BqZEHGy2ZUCmxlVfPLRa0zXSGlRShY5QeELiXKwOsLNDN5RapJWbyboxX9bNi/ fqIw== X-Gm-Message-State: AOAM531wEDK1Yzk6m+DPtqjxj0GxUUGAhpqZSX5QMf7AwwABtPxmwl6a vn6rTD/JRvNgEd5fGxX6B8A= X-Google-Smtp-Source: ABdhPJzD1w2ppTAVLTCPBwzmleR83KtgLk5wrGQsoXsvhs7DAJXgMZh7hUnxoVU6/xRjyE2buEyPXg== X-Received: by 2002:a17:90a:5887:: with SMTP id j7mr5254701pji.79.1609270917913; Tue, 29 Dec 2020 11:41:57 -0800 (PST) Received: from asadanan-lnx.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.googlemail.com with ESMTPSA id c10sm41845346pfj.54.2020.12.29.11.41.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Dec 2020 11:41:57 -0800 (PST) From: Ashish Sadanandan To: olivier.matz@6wind.com Cc: dev@dpdk.org, Ashish Sadanandan Date: Tue, 29 Dec 2020 12:41:44 -0700 Message-Id: <20201229194144.17824-1-ashish.sadanandan@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [dpdk-dev] [PATCH 1/1] mbuf: add extern "C" to rte_mbuf_dyn.h X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. Signed-off-by: Ashish Sadanandan --- lib/librte_mbuf/rte_mbuf_dyn.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.h b/lib/librte_mbuf/rte_mbuf_dyn.h index d88e7ba..fc4eee7 100644 --- a/lib/librte_mbuf/rte_mbuf_dyn.h +++ b/lib/librte_mbuf/rte_mbuf_dyn.h @@ -67,6 +67,11 @@ */ #include + +#ifdef __cplusplus +extern "C" { +#endif + /** * Maximum length of the dynamic field or flag string. */ @@ -326,4 +331,8 @@ int rte_mbuf_dyn_rx_timestamp_register(int *field_offset, uint64_t *rx_flag); __rte_experimental int rte_mbuf_dyn_tx_timestamp_register(int *field_offset, uint64_t *tx_flag); +#ifdef __cplusplus +} #endif + +#endif /* _RTE_MBUF_DYN_H_ */ -- 2.9.3