<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Harish,<br>
    <br>
    GiNaC started using C++11 features in a recent version, which is
    where the noexcept keyword was introduced to C++. Adding -std=c++11
    to your compile options should fix the problem if your compiler
    version supports C++11.<br>
    <br>
    Cheers,<br>
    Thomas<br>
    <br>
    <div class="moz-cite-prefix">On 20/10/16 23:42, harish sukhwani
      wrote:<br>
    </div>
    <blockquote
cite="mid:BN6PR2001MB10426D4F4178E96537BF1DCAD3D50@BN6PR2001MB1042.namprd20.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">Hi
        Everyone, <br>
        <div style="color: rgb(0, 0, 0);">
          <div>
            <div id="divtagdefaultwrapper" style="font-size:12pt;
              color:#000000;
              font-family:Calibri,Arial,Helvetica,sans-serif">
              <p><br>
              </p>
              <p>I am new to GiNaC. In our research group. we have a
                tool written predominantly in C (and some c++ with
                GiNaC). I have inherited this recently, and I am trying
                to cross-compile using mingw32 on Ubuntu 14.04 with
                Win32 target. Note that the compiling application for
                local target with Ginac1.5 installed works fine. <br>
              </p>
              <p><br>
              </p>
              <p>I compile the only single file using GiNaC using</p>
              <p><br>
              </p>
              <p><span>i686-w64-mingw32-g++ -c -o symbolic-diff.o
                  symbolic-diff.cpp</span><br>
              </p>
              <p><br>
              </p>
              <p>I see the following error <span>(and a LOT more
                  errors:  </span></p>
              <p><br>
              </p>
              <p><i>In file included from
                  /usr/i686-w64-mingw32/include/ginac/basic.h:27:0,<br>
                </i></p>
              <div><i>                 from
                  /usr/i686-w64-mingw32/include/ginac/ginac.h:28,<br>
                                   from symbolic-diff.cpp:17:  </i>(lin<i>e
                </i>corresponding to <i>
                </i><span>#include <ginac/ginac.h></span><i><span></span></i>)<i><br>
                  /usr/i686-w64-mingw32/include/ginac/ptr.h:37:13:
                  error: expected ‘;’ at end of member declaration<br>
                    refcounted() noexcept : refcount(0) {}<br>
                               ^<br>
                  /usr/i686-w64-mingw32/include/ginac/ptr.h:37:15:
                  error: ‘noexcept’ does not name a type<br>
                    refcounted() noexcept : refcount(0) {}</i></div>
              <p><br>
              </p>
              <p>I am not sure where to start. <br>
              </p>
              <p>.....</p>
              <p><br>
              </p>
              <p>FYI, here are my installation steps for CLN1.3.3 and
                GiNaC 1.7.1</p>
              <p><br>
              </p>
              <div>HOST=i686-w64-mingw32<br>
                CXX=${HOST}-g++<br>
                CC=${HOST}-gcc<br>
                CPPFLAGS=-I/usr/i686-w64-mingw32/include<br>
                CXXFLAGS="$CPPFLAGS -O3"<br>
                CFLAGS=$CXXFLAGS<br>
                LDFLAGS=-L/usr/i686-w64-mingw32/lib<br>
                PREFIX=/usr/i686-w64-mingw32<br>
                export CC CXX CPPFLAGS CXXFLAGS CFLAGS LDFLAGS HOST<br>
                <br>
                ** For CLN ** <br>
              </div>
              <p><span>./configure --host=$HOST --enable-shared
                  --prefix=$PREFIX && make && make
                  install</span></p>
              <p><span><br>
                </span></p>
              <p><span></span></p>
              <div>CLN_CFLAGS=$CPPFLAGS<br>
                CLN_LIBS="$LDFLAGS -lcln"<br>
                export CLN_CFLAGS CLN_LIBS<br>
                <br>
                <span>** For GiNaC** </span><br>
                ./configure --host=$HOST --enable-shared
                --prefix=$PREFIX && make && make install<br>
                <br>
                Thanks<br>
                <br>
                Harish<br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
  </body>
</html>