From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CO/yOBi9MmO2ZwEAbAwnHQ (envelope-from ) for ; Tue, 27 Sep 2022 11:06:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qGTiOBi9MmNdMAAAauVa8A (envelope-from ) for ; Tue, 27 Sep 2022 11:06:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1A9FB394E0 for ; Tue, 27 Sep 2022 11:06:32 +0200 (CEST) Received: from localhost ([::1]:34426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1od6Xv-0002G0-8d for larch@yhetil.org; Tue, 27 Sep 2022 05:06:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od62x-00009c-Jb for emacs-orgmode@gnu.org; Tue, 27 Sep 2022 04:34:32 -0400 Received: from esa07.ucs.mun.ca ([134.153.136.27]:37216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od62u-0002aA-Rn for emacs-orgmode@gnu.org; Tue, 27 Sep 2022 04:34:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mun.ca; s=mu20220027.s0; h=references:from:to:subject:date:in-reply-to:message-id: mime-version; bh=IyZ9VMuT9r3Q0HAXZTNvrutQQ3G5JeZWgH6d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LIZ6J3vLL/GjtYnJ9wXoqOEc5oR05D87Li6hbYvjnctF5F6ipibUZ8hnVn w/iQMTTTdwuYS83O0aTpACvb8qE/MShc+LMzly/s6LMxloRiHSZT4Kp80PHyv1LMZyUSFKM1 FBdxZbCtrlRVcrRxHbQKAnoIF1Pz6jbWNE7qQAyd6TNCxzwpRZPgKgNvGokeRg0Wir6UWaxO RaM0e+u2HOjFCv7MP8sC25AI94twqX6DpzuX/rQY7JzjmtZKme6EeAHTRD44l0BZ2B3yPFma MrHLZvxZZvYYIw+pAeLqy4m+edD7kgDKan7HPgXEzzPPWKiWUOo IronPort-HdrOrdr: A9a23:pNeEdKrIDEyVcWByjS7twFsaV5oveYIsimQD101hICG9E/bo9f xG88506faZslsscVEm3cuNIayRBW7bnKQV3WBzB8bAYOCFgguVxehZhOPfKn/bcBEWndQz6U 4PScRDIeHrAUM/hcj35xTQKbwd/OU= X-IronPort-AV: E=Sophos;i="5.93,348,1654569000"; d="scan'208";a="91053803" Received: from cpe00fc8db7a323-cm00fc8db7a320.cpe.net.cable.rogers.com (HELO pyrope) ([174.117.202.255]) by smtp07.ucs.mun.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 06:04:27 -0330 References: <756c0374-abef-8e73-e765-9cfeb03bb462@free.fr> User-agent: mu4e 1.6.6; emacs 27.2 From: Roger Mason To: emacs-orgmode@gnu.org Subject: Re: Compiling a C++ source block Date: Tue, 27 Sep 2022 05:56:14 -0230 In-reply-to: <756c0374-abef-8e73-e765-9cfeb03bb462@free.fr> Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=134.153.136.27; envelope-from=rmason@mun.ca; helo=esa07.ucs.mun.ca X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664269592; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IyZ9VMuT9r3Q0HAXZTNvrutQQ3G5JeZWgH6d/sDf+84=; b=fVYPrNYIP5bCl1qeXbZSRDYI5jxjWrXj9Q6mRkNJfkTg/sEF0A5kdcrzPGjmM+Vw3F6Bym WTLgOXg+BBx7zj7FZzHThEA0wExiJdK293LH1QotWM8Oi5E5+e5m7BW8SVxaNfYHf8Whuo yPyyHPK6qnFekRwH1zhaKuSjIFO9vpW/Xf3UZA2GG1pF8O8wDZ2SSa/jc6AtvflfAEs01Y 2h3hPd4U9SV2cUosqEXbndyDEQY4rNBN3HM9ZAET+38Y9wafrDuV771u1RGRtZ8Vftzms/ hZoDv6CVGS5d0q8JyWNzFBufeKopvfzaRa5vJebQycjHoxfbH6VF8N1zPLueNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664269592; a=rsa-sha256; cv=none; b=d2dOa3K+pueHr8sK8BIor94hK9sYv3WFFZ5p6WS5rmYc1DmFSVqLaMcTLW+b0FQuBrYMWm 4RnZnFhukScSB83iP8leqAZc5m1mjwHoEIU7XgqPn07KsH+vaYuq4fkpw05aeHf48mQvWN lYlKQdw7pQafePd+PY9fJWkh156vyqdrDXl9HW6Qq3zeoJiuqq5X9ZqLzScsWtU36NNN9J 0XXO2axTWP4sRWSun2FEdnx6ZE5tgnn4QQzhMUGfhOeopd4U523kgWt6LrJvJq8nwBGXsa wlRDIYT0bM43JCMKW6JHhnIgWnpJuYApCRCJF3uNhfIc8y5OBCPu8Zc92cfbkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mun.ca header.s=mu20220027.s0 header.b=iixaeaGi; dmarc=pass (policy=none) header.from=mun.ca; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.94 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mun.ca header.s=mu20220027.s0 header.b=iixaeaGi; dmarc=pass (policy=none) header.from=mun.ca; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1A9FB394E0 X-Spam-Score: -3.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: kPloO3Kbu/1B Hello, tbanelwebmin writes: > You may try: > #+header: :includes '("" "") > > Also, you have this commented line: > # #+header: :var table= > It seems to break the #+header: chain > Just remove it. > > By the way, to figure out future compilation problems, you may click on the error: > /tmp/babel-eqG2i0/C-src-3zG2ec.cpp:16:1: error: unknown type name 'ex' > This will open the source file actually being compiled. > > Have fun! Thank you. For the record, this works: #+name: gnc_cav #+header: :includes '("" "") #+header: :libs -I/usr/local/include -L/usr/local/lib -lginac -lcln #+header: :flags -std=c++17 #+header: :namespaces std GiNaC #+header: :var job="vectors" :var vol=113.13115406160385926 :var r=1.0995524816924328312 #+header: :var a=4.916 :var c=5.4054 #+header: :main no Note the :libs line specifies an include path. A bit unintuitive, but it does the job. Specifying a path in the :includes does not work (and nothing in the docs suggests that it should). By the way, 'C-c C-v v' also provides access to the file sent for compilation. Thanks again, Roger