help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkoctfile problem


From: Michael Goffioul
Subject: Re: mkoctfile problem
Date: Tue, 20 Jan 2009 10:42:13 +0000

On Tue, Jan 20, 2009 at 10:37 AM, Allahyari Rahim <address@hidden> wrote:
> Hello
>
>
>
> What i do wrong,
>
>
>
> i work with octave 3.2.0_
>
>
>
> i have my lib TWUClib.a on Dir  "C:\TWUClib\lib"
>
>
>
> I give command.
>
>
>
>> mkoctfile -LC:\TWUClib\lib
>
> octave-3.0.2.exe:105:C:\Programme\Octave\3.0.2_gcc-4.3.0\mingw32
>
>>
>
>
>
> and then I call mkoctfile –lTWUClib.a TWUsetUserAgent.cc
>
>
>
> 1)      TWUClib.a could  not be copied in lib.
>
> 2)       Therefore  if I give
>
>     > mkoctfile -lTWUClib.a TWUsetUserAgent.cc
>
> c:/programme/octave/3.0.2_gcc-4.3.0/mingw32/bin/../lib/gcc/mingw32/4.3.0-dw2/../../../../mingw32/bin/ld.exe:
> cannot find
>
>       -lTWUClib.a
>
> collect2: ld returned 1 exit status

Try this

mkoctfile -c TWUsetUserAgent.cc
mkoctfile -o TWUsetUserAgent.oct TWUsetUserAgent.o C:/TWUClib/lib/TWUClib.a

If this does not work, then copy C:\TWUClib\lib\TWUClib.a into
C:\TWUClib\lib\libTWUClib.a
then use

mkoctfile TWUsetUserAgent.c -Lc:/TWUClib/lib -lTWUClib

Michael.



reply via email to

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