From patchwork Wed Dec 12 14:32:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 41 Return-Path: Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 81E4D60A71 for ; Wed, 12 Dec 2018 15:32:31 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id E6B3A24001A; Wed, 12 Dec 2018 14:32:30 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Wed, 12 Dec 2018 15:32:25 +0100 Message-Id: <1544625145-8021-1-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 Subject: [libcamera-devel] [PATCH v2] build: Add 'std=c++11' cpp compiler flag X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2018 14:32:31 -0000 Building the current master branch fails with: ./src/libcamera/include/log.h:25:34: error: defaulted and deleted functions only available with -std=c++11 \ or -std=gnu++11 [-Werror] LogMessage(const LogMessage&) = delete; Fix this by adding the 'std=c++11' compiler argument for to the list of cpp build flags. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- v2 -> v1: - As suggested by Kieran, add 'std=c++11' argument to the global cpp_arguments variable --- meson.build | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/meson.build b/meson.build index 2fdb166..7b6e2fe 100644 --- a/meson.build +++ b/meson.build @@ -17,6 +17,7 @@ common_arguments = [ c_arguments = common_arguments cpp_arguments = common_arguments +cpp_arguments += '-std=c++11' add_project_arguments(c_arguments, language: 'c') add_project_arguments(cpp_arguments, language: 'cpp')