From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iJGWIkdcK1/9FAAA0tVLHw (envelope-from ) for ; Thu, 06 Aug 2020 01:26:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0L5mHkdcK1+zSQAAbx9fmQ (envelope-from ) for ; Thu, 06 Aug 2020 01:26:31 +0000 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 0C7369407C5 for ; Thu, 6 Aug 2020 01:26:30 +0000 (UTC) Received: from localhost ([::1]:36148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3Ufs-0004zW-6r for larch@yhetil.org; Wed, 05 Aug 2020 21:26:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3UfM-0004zI-HI for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 21:25:56 -0400 Received: from mail-ed1-f42.google.com ([209.85.208.42]:39187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3UfG-0002On-EQ for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 21:25:55 -0400 Received: by mail-ed1-f42.google.com with SMTP id c10so4213270edk.6 for ; Wed, 05 Aug 2020 18:25:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zPWwEtTyStfDhsjT0r9okgqfdToDbctVOBea33LDACo=; b=MZC8sH7lCkVH235ufRtt/+IuEIqUbosnkoIQ20taRe+uKy0k95rA/XSmuK7Mi+5umA sbKFEZW35yEZlYwkbrEknHRy74NCwsHAU5W9dBkG+532TTSWgfLSGJwoCnYCdvx3UgGU 5EVeuFhevhzoQTHkLXmYngg2NVyjZPOJm4lLMBCpnIT+OrXinKH0UUADBRI8vRIcKC5b 2k47xx7tcbmBwOeeFx7mSPknloY0N8EZSRyg/5IZ2aqtWXTVdl0gAX5ADwOIt1hx3n5j 4g62RfWSGBtIMmuDnd536mVN4oMH/2JWQ3GblIk4xuZ9zh6aDZX+4+fMj9Tc3yF7iSN2 w3ng== X-Gm-Message-State: AOAM533C9+QIrk4cZHa2NymG/37zjW72uUstKtZIyGKSNMO9QozqZra2 Y/jfmBXQgNaug6dHhZOQpOtwN58Y4LberAoCzL8= X-Google-Smtp-Source: ABdhPJweGZ7TGCrLW9z2PLHiSaegZOd3vO+xQBn7G2AP3UmWAUt3cqhcSkUzFcC+KJUxBKkp42HzhD7iuipsRLrikHo= X-Received: by 2002:a05:6402:304b:: with SMTP id bu11mr1870449edb.106.1596677148218; Wed, 05 Aug 2020 18:25:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ian martins Date: Wed, 5 Aug 2020 21:25:37 -0400 Message-ID: Subject: Re: Using Code Block for C++ To: Christopher Dimech Content-Type: multipart/alternative; boundary="0000000000003d991405ac2b5e60" Received-SPF: pass client-ip=209.85.208.42; envelope-from=ianxm1@gmail.com; helo=mail-ed1-f42.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/05 21:25:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-Mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.91 X-TUID: b8LwJHiTnNgr --0000000000003d991405ac2b5e60 Content-Type: text/plain; charset="UTF-8" Christopher, C, C++ and D are all defined in ob-C.el, so when you load C you get C++ and D as well. If you remove the "(c++ . t)" from the above line, does it work? On Wed, Aug 5, 2020 at 6:05 PM Christopher Dimech wrote: > > Have been trying to set the C++ call for using a code block. > > Here is the call. I am getting an error, have tried Cpp, cpp, C++, c++ > > (org-babel-do-load-languages > 'org-babel-load-languages > '( (sh . t) (lisp . t) (emacs-lisp . t) > (awk . t) (python . t) (R . t) > (C . t) (c++ . t) (F90 . t) > )) > > The error is > > Debugger entered--Lisp error: (file-error "Cannot open load file" "ob-c++") > require(ob-c++) > > --------------------- > Christopher Dimech > Chief Administrator - Naiad Informatics - GNU Project (Geocomputation) > - Geophysical Simulation > - Geological Subsurface Mapping > - Disaster Preparedness and Mitigation > - Natural Resource Exploration and Production > - Free Software Advocacy > > > --0000000000003d991405ac2b5e60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Christopher,

C, C++ and= D are all defined in ob-C.el, so when you load C you get C++ and D as well= . If you remove the "(c++ . t)" from the above line, does it work= ?


On Wed, Aug 5, 2020 at 6:05 PM Christopher Dimech <dimech@gmx.com> wrote:

Have been trying to set the C++ call for using a code block.

Here is the call. I am getting an error, have tried Cpp, cpp, C++, c++

=C2=A0 (org-babel-do-load-languages
=C2=A0 =C2=A0 'org-babel-load-languages
=C2=A0 =C2=A0 '( (sh . t) (lisp . t) (emacs-lisp . t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(awk . t) (python . t) (R . t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(C . t) (c++ . t) (F90 . t)
=C2=A0 ))

The error is

Debugger entered--Lisp error: (file-error "Cannot open load file"= "ob-c++")
=C2=A0 require(ob-c++)

---------------------
Christopher Dimech
Chief Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy


--0000000000003d991405ac2b5e60--