[GiNaC-list] Various syntax errors while compiling appln. with Ginac1.7.1
harish sukhwani
tallharish at hotmail.com
Thu Oct 20 23:42:20 CEST 2016
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: (line 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20161020/798c0e9a/attachment.html>
More information about the GiNaC-list
mailing list