Hello,
Nick Dokos writes:
> All very good info, but why did the OP not have a g++? Using a
> non-linux operating system? Using a non-GNU tool chain? Inquiring
> minds want to know...
Running on FreeBSD 10.3, which uses clang/clang++ by default. That
said, I _do_ have gcc 5.4.0 installed and a
Thierry Banel writes:
> On 28/11/2017 18:08, Roger Mason wrote:
>
> Hello,
>
> Roger Mason writes:
>
> It compiles fine:
>
> c++ -std=c++11 -I/usr/local/include -L/usr/local/lib -lginac
> C-src-1053hn1.cpp
>
> Solved by setting:
>
>
On 28/11/2017 18:08, Roger Mason wrote:
Hello,
Roger Mason writes:
It compiles fine:
c++ -std=c++11 -I/usr/local/include -L/usr/local/lib -lginac
C-src-1053hn1.cpp
Solved by setting:
(setq org-babel-C++-compiler "c++")
I don't recall h
Hello,
Roger Mason writes:
> It compiles fine:
>
> c++ -std=c++11 -I/usr/local/include -L/usr/local/lib -lginac
> C-src-1053hn1.cpp
Solved 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 o
Hello Thierry,
Thierry Banel writes:
> You may try to mimic org-babel in a shell, and see what happens.
>
> cd /tmp/babel-29466ws7
> g++ -std=c++11 -I/usr/local/include C-src-29466moy.cpp -L/usr/local/lib
> -lginac
>
> (of course you need to change the random names like babel-29466ws7 by the
>
On 26/11/2017 12:42, Roger Mason wrote:
Hello,
Thierry Banel writes:
On 25/11/2017 15:59, Roger Mason wrote:
This code compiles fine on command line but org-babel can't link it.
#+BEGIN_SRC C++ :flags "-std=c++11 -I/usr/local/includ
Hello,
Thierry Banel writes:
> On 25/11/2017 15:59, Roger Mason wrote:
>> This code compiles fine on command line but org-babel can't link it.
>>
>> #+BEGIN_SRC C++ :flags "-std=c++11 -I/usr/local/include" :libs
>> "-L/usr/local/lib -lginac"
>> #include
>> #include
>> using namespace std;
>>
On 25/11/2017 15:59, Roger Mason wrote:
Hello,
This code compiles fine on command line but org-babel can't link it.
#+BEGIN_SRC C++ :flags "-std=c++11 -I/usr/local/include" :libs "-L/usr/local/lib
-lginac"
#include
#include
using namespace std;
using namespace GiNaC;
int main () {
sym
Hello,
This code compiles fine on command line but org-babel can't link it.
#+BEGIN_SRC C++ :flags "-std=c++11 -I/usr/local/include" :libs
"-L/usr/local/lib -lginac"
#include
#include
using namespace std;
using namespace GiNaC;
int main () {
symbol a("a"), b("b"), x("x"), y("y");
lst