From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id AE05EC168 for ; Tue, 16 Feb 2016 17:28:13 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id c200so170427465wme.0 for ; Tue, 16 Feb 2016 08:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=rnw6UJuitAzcYwc/+wLr9CxOdHYf2Ca+O4kI86lm5hs=; b=HrmrzZGNtpXm3W5L6ToU4axjSyxQcCrwPxMKu7XkgoLK5aDg7qkbK7gsraeDHjaJZw KFlLxYS8CA5mbZH+Aw3AC7let1feA2e2hwSNTEk+hBhaEtKrxu8Ld5OpGQxwZlU3Dyrm 5j3giLYj1y9m75u7PI4PicCzdrSVTqw9ovnsHzO7b10fDSizrDRji9P6ZdmL+IGsebB/ lj8lh0JKNlZ56IRHKoVIRJlP896LivCgQZKuX9VGzlW0t3beUgHtAxjzf7p0quPPj7x8 yuBa+8Vr9r/xDO90zgXFkQ5a3SBVpXydhB62AUHN/dHFOIIX4Y5PHywmVmAoreYHsQQQ RRnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=rnw6UJuitAzcYwc/+wLr9CxOdHYf2Ca+O4kI86lm5hs=; b=Qe78ym2pNOTCsS/ciVqpb1xWWq6O1O1gca3yNku+zfVqWJanlA9L88GB7MchlmvqNO a/hVVyFmWo3Stm5B8i+MufdL+l0/rbZRwNKr7oZfeb3ymciJl51M84fL+tXNPoMR8B2d z3N173jYcSTh+vDoFr6Cf6JbdgxXKxfIxq7Ng7H8359RfsPstMOfB4VfGVVal0dRa1qu 1o33vACwa3g8DVNliFL/DbUcvqHhEuarrAxuEYtDf4jwBZOifaMKIQlptEZNTPIlKuAx 12VZTg8ha9MtKksv5TZ1Ph27Wui7o2fntIwJLwK6ykXtTVwfL5bWANHBGpxUGuJtzb9V 6NhA== X-Gm-Message-State: AG10YOSLgV2KdX0CI5EqpWtuIgU+3yHCziMBFYnYxG50jowWBLApcQLNhdRCYky2ILdriKtf X-Received: by 10.194.63.242 with SMTP id j18mr27140572wjs.114.1455640093484; Tue, 16 Feb 2016 08:28:13 -0800 (PST) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id h132sm21254553wmf.9.2016.02.16.08.28.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Feb 2016 08:28:12 -0800 (PST) From: Thomas Monjalon To: Ferruh Yigit Date: Tue, 16 Feb 2016 17:26:41 +0100 Message-ID: <3258026.sKzRUcIKf8@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20160216162134.GA30782@sivlogin002.ir.intel.com> References: <1454691969-25734-1-git-send-email-thomas.monjalon@6wind.com> <1455606865-22680-1-git-send-email-thomas.monjalon@6wind.com> <20160216162134.GA30782@sivlogin002.ir.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 0/3] fix C++ includes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 16:28:13 -0000 2016-02-16 16:21, Ferruh Yigit: > On Tue, Feb 16, 2016 at 08:14:22AM +0100, Thomas Monjalon wrote: > > When trying to build a C++ application, some errors appear from DPDK headers. > > 2 libraries are not fixed in this series: > > - cmdline > > - vhost which includes some not compliant Linux virtio headers > > Out of curiosity, how can we detect C++ compilation problems, do we have a C++ sample application? > Or how can we compile any existing application with c++, I tried "EXTRA_CFLAGS="-x c++" or "CC=g++" but both failed to compile. I will submit a test. At the moment, I use CC=g++ with this file: #ifdef RTE_LIBRTE_EAL #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef RTE_ARCH_X86 #include #endif #include #include #include #include #include #include #include #include #endif #ifdef RTE_LIBRTE_CMDLINE /* TODO: C++ support #include #include #include */ #include #include #include #include #include #include #include #include #endif #ifdef RTE_LIBRTE_ACL #include #endif #ifdef RTE_LIBRTE_SCHED #include #include #include #include #include #endif #ifdef RTE_LIBRTE_NET #include #include #include #include #include #include #endif #ifdef RTE_LIBRTE_CFGFILE #include #endif #include #include #ifdef RTE_LIBRTE_CRYPTODEV #include #include #include #endif #ifdef RTE_LIBRTE_DISTRIBUTOR #include #endif #ifdef RTE_LIBRTE_PMD_AF_PACKET #include #endif #ifdef RTE_LIBRTE_PMD_BOND #include #include #endif #ifdef RTE_LIBRTE_ETHER #include #include #include #endif #ifdef RTE_LIBRTE_PMD_NULL #include #endif #ifdef RTE_LIBRTE_PMD_RING #include #endif #ifdef RTE_LIBRTE_HASH #include #include #include #include #include #endif #ifdef RTE_LIBRTE_IP_FRAG #include #endif #ifdef RTE_LIBRTE_JOBSTATS #include #endif #ifdef RTE_LIBRTE_KNI #include #endif #ifdef RTE_LIBRTE_KVARGS #include #endif #ifdef RTE_LIBRTE_LPM #include #include #endif #ifdef RTE_LIBRTE_MBUF #include #endif #ifdef RTE_LIBRTE_MBUF_OFFLOAD #include #endif #ifdef RTE_LIBRTE_MEMPOOL #include #endif #ifdef RTE_LIBRTE_METER #include #endif #ifdef RTE_LIBRTE_PIPELINE #include #endif #ifdef RTE_LIBRTE_PORT #include #include #include #include #include #include #include #endif #ifdef RTE_LIBRTE_POWER #include #endif #ifdef RTE_LIBRTE_REORDER #include #endif #ifdef RTE_LIBRTE_RING #include #endif #ifdef RTE_LIBRTE_TABLE #include #include #include #include #include #include #include #include #endif #ifdef RTE_LIBRTE_VHOST /* TODO: fix vhost header for C++ #include */ #endif int main(int argc, char **argv) { RTE_LOG(NOTICE, USER1, "function %s\n", __func__); return 0; }