help-octave
[Top][All Lists]
Advanced

[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 17:53:47 +0900 (JST)

----- Original Message -----

> From: Tatsuro MATSUOKA 
> To: Fávero Santos ; help
> Cc: 
> Date: 2017/3/2, Thu 16:43
> Subject: Re: Mkoctfile cannot find -loctinterp and -loctave libraries
> 
> ----- 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


Sorry I have made a mistake.

-L.lib/x86 should be -L./lib/x86


Perhaps the library you want to link 32 bit while your octave 64 bit.
This may cause link error.

At that time use, 32bit version octave.

Tatsuro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]