<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Pedro,</p>
    <p>that is more a matter of your compiler and your system than of
      GiNaC.<br>
      Since you are on ubunte and ginac.h is already in
      /usr/include/..., the program can be compiled with <br>
    </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>
    </p>
    <div class="moz-cite-prefix">On 3/13/19 4:30 PM, Pedro Sosa via
      GiNaC-list wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1868011256.7110998.1552491056339@mail.yahoo.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="ydpa1c5e940yahoo-style-wrap" style="font-family:
        Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><span><span><span>
              <div>
                <div class="ydp227486b1yiv9284917449ydp14b4493bmsg-body
                  ydp227486b1yiv9284917449ydp14b4493bP_wpofO
                  ydp227486b1yiv9284917449ydp14b4493biy_A">
                  <div class="ydp227486b1yiv9284917449ydp14b4493bjb_0
                    ydp227486b1yiv9284917449ydp14b4493bX_6MGW
                    ydp227486b1yiv9284917449ydp14b4493bN_6Fd5">
                    <div>
                      <div
                        id="ydp227486b1yiv9284917449ydp14b4493byiv0300738416">
                        <div>
                          <div
class="ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydp392e37ffyahoo-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="ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydp392e37ffyahoo-style-wrap"
                            style="font-family:Helvetica Neue,
                            Helvetica, Arial,
                            sans-serif;font-size:13px;"><br>
                          </div>
                          <div
class="ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydp392e37ffyahoo-style-wrap"
                            style="font-family:Helvetica Neue,
                            Helvetica, Arial,
                            sans-serif;font-size:13px;"><span>
                              <pre class="ydp227486b1yiv9284917449ydp14b4493byiv0300738416ydpb1075e48example">#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>
                            </span>
                            <div><br>
                            </div>
                            <div>where I must put this file for ginac.h
                              can be visible</div>
                            <div>thanks</div>
                            <div><br>
                            </div>
                            <div>PS: <span>/usr/include/ginac/ginac.h</span><br>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </span><span><span
                class="ydp227486b1yiv9284917449ydp14b4493bem_N
                ydp227486b1yiv9284917449ydp14b4493ben_N"></span></span><span
              class="ydp227486b1em_N ydp227486b1en_N"></span></span><br>
        </span></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
GiNaC-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GiNaC-list@ginac.de">GiNaC-list@ginac.de</a>
<a class="moz-txt-link-freetext" href="https://www.cebix.net/mailman/listinfo/ginac-list">https://www.cebix.net/mailman/listinfo/ginac-list</a>
</pre>
    </blockquote>
  </body>
</html>