[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QT - undefined reference to feval
From: |
alexegin |
Subject: |
Re: QT - undefined reference to feval |
Date: |
Sun, 28 May 2017 00:57:00 -0700 (PDT) |
Mike Miller-4 wrote
> Can you build your project using the gcc compiler that is supplied with
> Octave?
Yes, I can. When I run the following command from *CLI* or from *Octave*,
compiling and linking runs without error (but I have an exception when run
the binary):
*c:\Octave\Octave-4.2.1\bin>mkoctfile --link-stand-alone -v embedded.cc -o
embedded*g++ -std=gnu++11 -c
-I/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/include
-Ic:\Octave\Octave-4.2.1\include\octave-4.2.1\octave\..
-Ic:\Octave\Octave-4.2.1\include\octave-4.2.1\octave
-Ic:\Octave\Octave-4.2.1\include -pthread -fopenmp -mieee-fp -g -O2
embedded.cc -o embedded.og++ -std=gnu++11
-I/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/include
-Ic:\Octave\Octave-4.2.1\include\octave-4.2.1\octave\..
-Ic:\Octave\Octave-4.2.1\include\octave-4.2.1\octave
-Ic:\Octave\Octave-4.2.1\include -pthread -fopenmp -mieee-fp -g -O2
-Wl,-rpath-link,/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-Wl,--export-all-symbols -o embedded embedded.o
-Lc:\Octave\Octave-4.2.1\lib\octave\4.2.1 -Lc:\Octave\Octave-4.2.1\lib
-loctinterp -loctave
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib -lfreetype
-lhdf5 -lGraphicsMagick++ -lGraphicsMagick -lz -lfftw3 -lfftw3f
-lopengl32 -lglu32
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib -lfontconfig
-lfreetype -lgl2ps -ladvapi32 -llapack -lws2_32 -lws2_32 -lws2_32
-lws2_32 -lcurl -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd
-lcxsparse -lsuitesparseconfig -larpack -lqrupdate -lfftw3 -lfftw3f
-llapack -lblas -lreadline -ltermcap
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib -lpcre
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/lib/gcc/i686-w64-mingw32/4.9.4
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/lib/gcc/i686-w64-mingw32/4.9.4/../../../../i686-w64-mingw32/lib/../lib
-L/scratch/jwe/mxe-octave/4.2.1/w32/usr/lib/gcc/i686-w64-mingw32/4.9.4/../../../../i686-w64-mingw32/lib
-lm -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -ladvapi32
-lshell32 -luser32 -lkernel32 -lm -lgdi32 -lws2_32 -luser32 -lkernel32
-lgdi32 -lws2_32 -luser32
-lkernel32*c:\Octave\Octave-4.2.1\bin>**c:\Octave\Octave-4.2.1\bin>embedded.exe**GCD
of [10, 15] is 5*terminate called after throwing an instance of
'octave::exit_exception'This application has requested the Runtime to
terminate it in an unusual way.Please contact the application's support team
for more information.*c:\Octave\Octave-4.2.1\bin>*
According to the gcc docs
<http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html> I tried
to disable new ABI using the following comand in *.pro* file:
QMAKE_LFLAGS += --with-default-libstdcxx-abi
But I have the same errors. I also have the same compiler output on MacOS
...
--
View this message in context:
http://octave.1599824.n4.nabble.com/QT-undefined-reference-to-feval-tp4683465p4683497.html
Sent from the Octave - General mailing list archive at Nabble.com.