[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: |
Fri, 3 Mar 2017 09:10:40 +0900 (JST) |
Nabble archive
http://octave.1599824.n4.nabble.com/Mkoctfile-cannot-find-loctinterp-and-loctave-libraries-td4682081.html
Mkoctfile cannot find -loctinterp and -loctave libraries
Some last posts were not CC.ed to help list.
Finally problem is solved.
Original command line
mkoctfile -l "lib/x86/dwf.lib" "samples/c/analogin_sample.cpp"
author pass -l "lib/x86/dwf.lib"
then -l appear in link command line illegal way
-l-LC:\Octave\Octave-4.2.0\lib\octave\4.2.0
then library location option does not work
(should be -LC:\Octave\Octave-4.2.0\lib\octave\4.2.0)
then lead to "cannot find -loctinterp and -loctave libraries"
Final working mkoctfile command
mkoctfile -L./lib/x64 -ldwf ./samples/c/analogin_sample.cpp
-l option perhaps cannot have path.
-lxxxx (xxxx is library name for libxxxx.a, libxxxx.dll.a or xxxx.lib)
Specify library path by
-L./lib/x64
and
specify library name
-ldwf
solves the issue
Tatsuro