[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mkoctfile cannot find -loctinterp and -loctave libraries
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Mkoctfile cannot find -loctinterp and -loctave libraries |
Date: |
Thu, 2 Mar 2017 16:43:13 +0900 (JST) |
----- Original Message -----
>From: Fávero Santos
>To: address@hidden
>Date: 2017/3/1, Wed 21:48
>Subject: Mkoctfile cannot find -loctinterp and -loctave libraries
>
>
>Hello all!
>
>
>I'm trying to compile a c code using mkoctfile in octave. When I issue the
>command, the linker returns me the following error messages (linker cannot
>find libraries).
>
>
>Could anyone help me?
>
>
>Thanks so much!
>
>
>mkoctfile -l "lib/x86/dwf.lib" "samples/c/analogin_sample.cpp"
>
>
>c:/octave/octave-4.2.0/bin/../lib/gcc/x86_64-w64-mingw32/4.9.4/../../../../x86_64-w64-mingw32/bin/ld.exe:
> cannot find -l-LC:\Octave\Octave-4.2.0\lib\octave\4.2.0
>
>
>c:/octave/octave-4.2.0/bin/../lib/gcc/x86_64-w64-mingw32/4.9.4/../../../../x86_64-w64-mingw32/bin/ld.exe:
> cannot find -loctinterp
>
>
>c:/octave/octave-4.2.0/bin/../lib/gcc/x86_64-w64-mingw32/4.9.4/../../../../x86_64-w64-mingw32/bin/ld.exe:
> cannot find -loctave
>
>
>collect2.exe: error: ld returned 1 exit status
>warning: mkoctfile: building exited with failure status
>
>
>
Perhaps the above is arguments order issue.
Try
mkoctfile ./samples/c/analogin_sample.cpp -L.lib/x86 -ldwf
If you fail using the above, try add verbose option.
mkoctfile -v ./samples/c/analogin_sample.cpp -L.lib/x86 -ldwf
And copy and paste message into reply
For simple example on
https://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Oct_002dFiles.html#index-mkoctfile-1
mkoctfile helloworld.cc
If I add -v option
mkoctfile -v helloworld.cc
verbose option echo commands as they are executed
so that the above expanded as below.
g++ -std=gnu++11 -c -I/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/x86_64-w64-mingw3
2/include -IC:\octave\Octave-4.2.0\include\octave-4.2.0\octave\.. -IC:\octave\O
ctave-4.2.0\include\octave-4.2.0\octave -IC:\octave\Octave-4.2.0\include -pthre
ad -fopenmp -g -O2 helloworld.cc -o helloworld.o
g++ -std=gnu++11 -IC:\octave\Octave-4.2.0\include\octave-4.2.0\octave\.. -IC:\oc
tave\Octave-4.2.0\include\octave-4.2.0\octave -IC:\octave\Octave-4.2.0\include
-pthread -fopenmp -g -O2 -shared -o helloworld.oct helloworld.o -LC:\octave\
Octave-4.2.0\lib\octave\4.2.0 -LC:\octave\Octave-4.2.0\lib -loctinterp -loctave
-Wl,-rpath-link,/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/x86_64-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/x86_64-w64-mingw32/lib -L/scratch/jwe
/mxe-octave/4.2.0/w64-32/usr/x86_64-w64-mingw32/lib -Wl,--export-all-symbols -
L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/x86_64-w64-mingw32/lib -L/scratch/jw
e/mxe-octave/4.2.0/w64-32/usr/x86_64-w64-mingw32/lib -L/scratch/jwe/mxe-octave/
4.2.0/w64-32/usr/x86_64-w64-mingw32/lib -L/scratch/jwe/mxe-octave/4
.2.0/w64-32/usr/x86_64-w64-mingw32/lib -L/scratch/jwe/mxe-octave/4.2.0/w64-32/u
sr/x86_64-w64-mingw32/lib -L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/x86_64-w
64-mingw32/lib -lfreetype -lhdf5 -lGraphicsMagick++ -lGraphicsMagick -lz -lfft
w3 -lfftw3f -lopengl32 -lglu32 -L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/x86_
64-w64-mingw32/lib -lfontconfig -lfreetype -lgl2ps -ladvapi32 -llapack
-lws2_32 -lws2_32 -lws2_32 -lcurl -lcholmod -lumfpack -lamd -lcamd -lcola
md -lccolamd -lcxsparse -lsuitesparseconfig -larpack -lqrupdate -lfftw3 -lfftw3
f -llapack -lblas -lreadline -ltermcap -L/scratch/jwe/mxe-octave/4.2.0/w64-32/
usr/x86_64-w64-mingw32/lib -lpcre -L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/
x86_64-w64-mingw32/lib -L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/lib/gcc/x86_64
-w64-mingw32/4.9.4 -L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/lib/gcc/x86_64-w64
-mingw32/4.9.4/../../../../x86_64-w64-mingw32/lib/../lib -L/scratch/jwe/mxe-octa
ve/4.2.0/w64-32/usr/mingw/lib/../lib -L/scratch/jwe/mxe-octave/4.2.0/w64-32/usr/
lib/gcc/x86_64-w64-mingw32/4.9.4/../../../../x86_64-w64-mingw32/lib -L/scratch/j
we/mxe-octave/4.2.0/w64-32/usr/mingw/lib -lm -lgfortran -lmingw32 -lmoldname -lm
ingwex -lmsvcrt -lquadmath -ladvapi32 -lshell32 -luser32 -lkernel32 -lm -lgdi3
2 -lws2_32 -luser32 -lkernel32 -lgdi32 -lws2_32 -luser32 -lkernel32
Tatsuro