* Using Code Block for C++
@ 2020-08-05 22:05 Christopher Dimech
2020-08-06 1:25 ` ian martins
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Dimech @ 2020-08-05 22:05 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using Code Block for C++
2020-08-05 22:05 Using Code Block for C++ Christopher Dimech
@ 2020-08-06 1:25 ` ian martins
2020-08-06 1:44 ` Christopher Dimech
0 siblings, 1 reply; 3+ messages in thread
From: ian martins @ 2020-08-06 1:25 UTC (permalink / raw)
To: Christopher Dimech; +Cc: Org-Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]
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++
>
> (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
>
>
>
[-- Attachment #2: Type: text/html, Size: 1461 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-06 1:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-05 22:05 Using Code Block for C++ Christopher Dimech
2020-08-06 1:25 ` ian martins
2020-08-06 1:44 ` Christopher Dimech
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).