[GiNaC-list] Various syntax errors while compiling appln. with Ginac1.7.1
Thomas Luthe
tluthe at physik.uni-bielefeld.de
Fri Oct 21 11:08:38 CEST 2016
Hi Harish,
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.
Cheers,
Thomas
On 20/10/16 23:42, harish sukhwani wrote:
> Hi Everyone,
>
>
> 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.
>
>
> I compile the only single file using GiNaC using
>
>
> i686-w64-mingw32-g++ -c -o symbolic-diff.o symbolic-diff.cpp
>
>
> I see the following error (and a LOT more errors:
>
>
> /In file included from /usr/i686-w64-mingw32/include/ginac/basic.h:27:0,
> /
>
> / from /usr/i686-w64-mingw32/include/ginac/ginac.h:28,
> from symbolic-diff.cpp:17: /(lin/e /corresponding to
> //#include <ginac/ginac.h>//)/
> /usr/i686-w64-mingw32/include/ginac/ptr.h:37:13: error: expected ‘;’
> at end of member declaration
> refcounted() noexcept : refcount(0) {}
> ^
> /usr/i686-w64-mingw32/include/ginac/ptr.h:37:15: error: ‘noexcept’
> does not name a type
> refcounted() noexcept : refcount(0) {}/
>
>
> I am not sure where to start.
>
> .....
>
>
> FYI, here are my installation steps for CLN1.3.3 and GiNaC 1.7.1
>
>
> HOST=i686-w64-mingw32
> CXX=${HOST}-g++
> CC=${HOST}-gcc
> CPPFLAGS=-I/usr/i686-w64-mingw32/include
> CXXFLAGS="$CPPFLAGS -O3"
> CFLAGS=$CXXFLAGS
> LDFLAGS=-L/usr/i686-w64-mingw32/lib
> PREFIX=/usr/i686-w64-mingw32
> export CC CXX CPPFLAGS CXXFLAGS CFLAGS LDFLAGS HOST
>
> ** For CLN **
>
> ./configure --host=$HOST --enable-shared --prefix=$PREFIX && make &&
> make install
>
>
> CLN_CFLAGS=$CPPFLAGS
> CLN_LIBS="$LDFLAGS -lcln"
> export CLN_CFLAGS CLN_LIBS
>
> ** For GiNaC**
> ./configure --host=$HOST --enable-shared --prefix=$PREFIX && make &&
> make install
>
> Thanks
>
> Harish
>
>
>
> _______________________________________________
> GiNaC-list mailing list
> GiNaC-list at ginac.de
> https://www.cebix.net/mailman/listinfo/ginac-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20161021/bef14cf7/attachment.html>
More information about the GiNaC-list
mailing list