On 28/11/2017 18:08, Roger Mason wrote:
Good to know it is solved.Hello, Roger Mason <rma...@mun.ca> writes:It compiles fine: c++ -std=c++11 -I/usr/local/include -L/usr/local/lib -lginac C-src-1053hn1.cppSolved by setting: (setq org-babel-C++-compiler "c++") I don't recall having had to do this before. Phew! Very glad to have this working again. I'm not aware of any other tool that is as good as org-mode for literate programming and reproducible research. A big thank you to those who created and maintain it. Cheers, Roger You can customize this variable: C-h v org-babel-C++-compiler In case someone else bump into a similar problem, the actual command launched by Babel can be obtained through the debugger: M-x debug-on-entry RET org-babel-eval RET evaluate the Babel block The debugger shows a line like this one: * org-babel-eval("g++ -o /tmp/babel-3110Zeg/C-bin-3110Fwh -std=c++11 ... This works for many languages supported by Babel. |
- [O] C++ code block not linked Roger Mason
- Re: [O] C++ code block not linked Thierry Banel
- Re: [O] C++ code block not linked Roger Mason
- Re: [O] C++ code block not linked Thierry Banel
- Re: [O] C++ code block not linked Roger Mason
- Re: [O] C++ code block not linked [SOL... Roger Mason
- Re: [O] C++ code block not linked ... Thierry Banel
- Re: [O] C++ code block not lin... Nick Dokos
- Re: [O] C++ code block not lin... Roger Mason