<html><head></head><body><div class="ydpec3f5606yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div></div>
<div>many thanks it works<br></div><div><br></div>
</div><div id="yahoo_quoted_3132310731" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
En miércoles, 13 de marzo de 2019 16:59:09 CET, Patrick Schulz <pschulz@posteo.de> escribió:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv0856551231"><div>
<p>Hello Pedro,</p>
<p>that is more a matter of your compiler and your system than of
GiNaC.<br clear="none">
Since you are on ubunte and ginac.h is already in
/usr/include/..., the program can be compiled with <br clear="none">
</p>
<p> <tt> g++ program.cpp -lginac</tt></p>
<p>(-lginac tells the linker to load the library).</p>
<p>However, your program has an error, since poly is not defined.
Add</p>
<p><tt>ex poly;</tt></p>
<p>above your for-loop, then it runs fine.</p>
<p>Kind regards,</p>
<p>Patrick<br clear="none">
</p>
<div class="yiv0856551231yqt9136855134" id="yiv0856551231yqt28348"><div class="yiv0856551231moz-cite-prefix">On 3/13/19 4:30 PM, Pedro Sosa via
GiNaC-list wrote:<br clear="none">
</div>
<blockquote type="cite">
</blockquote></div></div><div class="yiv0856551231yqt9136855134" id="yiv0856551231yqt94980"><div><div class="yiv0856551231ydpa1c5e940yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span>
</span></span></span><div>
<div class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493bmsg-body yiv0856551231ydp227486b1yiv9284917449ydp14b4493bP_wpofO yiv0856551231ydp227486b1yiv9284917449ydp14b4493biy_A">
<div class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493bjb_0 yiv0856551231ydp227486b1yiv9284917449ydp14b4493bX_6MGW yiv0856551231ydp227486b1yiv9284917449ydp14b4493bN_6Fd5">
<div>
<div id="yiv0856551231ydp227486b1yiv9284917449ydp14b4493byiv0300738416">
<div>
<div class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydp392e37ffyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">Hello, I install
in my Ubuntu Ginac but I don't know how to
compile a basic example</div>
<div class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydp392e37ffyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none">
</div>
<div class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydp392e37ffyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>
</span><pre class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydpb1075e48example">#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;
int main()
{
symbol x("x"), y("y");
for (int i=0; i<3; ++i)
poly += factorial(i+16)*pow(x,i)*pow(y,2-i);
cout << poly << endl;
return 0;
}</pre>
<div><br clear="none">
</div>
<div>where I must put this file for ginac.h
can be visible</div>
<div>thanks</div>
<div><br clear="none">
</div>
<div>PS: <span>/usr/include/ginac/ginac.h</span><br clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span><span class="yiv0856551231ydp227486b1yiv9284917449ydp14b4493bem_N yiv0856551231ydp227486b1yiv9284917449ydp14b4493ben_N"></span></span><span class="yiv0856551231ydp227486b1em_N yiv0856551231ydp227486b1en_N"></span><br clear="none">
</div>
<br clear="none">
<fieldset class="yiv0856551231mimeAttachmentHeader"></fieldset>
<pre class="yiv0856551231moz-quote-pre">_______________________________________________
GiNaC-list mailing list
<a rel="nofollow" shape="rect" class="yiv0856551231moz-txt-link-abbreviated" ymailto="mailto:GiNaC-list@ginac.de" target="_blank" href="mailto:GiNaC-list@ginac.de">GiNaC-list@ginac.de</a>
<a rel="nofollow" shape="rect" class="yiv0856551231moz-txt-link-freetext" target="_blank" href="https://www.cebix.net/mailman/listinfo/ginac-list">https://www.cebix.net/mailman/listinfo/ginac-list</a>
</pre>
</div></div></div><div class="yqt9136855134" id="yqt54512">_______________________________________________<br clear="none">GiNaC-list mailing list<br clear="none"><a shape="rect" ymailto="mailto:GiNaC-list@ginac.de" href="mailto:GiNaC-list@ginac.de">GiNaC-list@ginac.de</a><br clear="none"><a shape="rect" href="https://www.cebix.net/mailman/listinfo/ginac-list" target="_blank">https://www.cebix.net/mailman/listinfo/ginac-list</a><br clear="none"></div></div>
</div>
</div></body></html>