emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] C++ code block not linked


From: Roger Mason
Subject: Re: [O] C++ code block not linked
Date: Mon, 27 Nov 2017 07:34:58 -0330
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix)

Hello Thierry,

Thierry Banel <address@hidden> 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 
> actual ones as generated
> on your system).

It compiles fine:

c++  -std=c++11 -I/usr/local/include -L/usr/local/lib -lginac C-src-1053hn1.cpp

C-src-1053hn1.cpp:16:10: warning: 'operator=' is deprecated 
[-Wdeprecated-declarations]
    eqns = a*x+b*y==3, x-y==b;
         ^
/usr/local/include/ginac/container.h:199:27: note: 'operator=' declared here
        container_init<ex, STLT> operator=(const ex & x) attribute_deprecated;
                                 ^
C-src-1053hn1.cpp:17:10: warning: 'operator=' is deprecated 
[-Wdeprecated-declarations]
    vars = x, y;
         ^
/usr/local/include/ginac/container.h:199:27: note: 'operator=' declared here
        container_init<ex, STLT> operator=(const ex & x) attribute_deprecated;
                                 ^
2 warnings generated.

Thanks for your help
Roger



reply via email to

[Prev in Thread] Current Thread [Next in Thread]