help-octave
[Top][All Lists]
Advanced

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

Re: mkoctfile problem


From: Allahyari Rahim
Subject: Re: mkoctfile problem
Date: Tue, 20 Jan 2009 12:19:18 +0000 (GMT)

hello

I tried following commands.

 

> mkoctfile -c TWUsetUserAgent.cc

octave-3.0.2.exe:126:C:\Programme\Octave\3.0.2_gcc-4.3.0\mingw32

> mkoctfile -o TWUsetUserAgent.oct TWUsetUserAgent.o C:\TWUClib\lib\TWUClib.a

TWUsetUserAgent.o:TWUsetUserAgent.cc:(.text+0x4d6): undefined reference to `_TWUsetUserAgent'

collect2: ld returned 1 exit status

octave-3.0.2.exe:127:C:\Programme\Octave\3.0.2_gcc-4.3.0\mingw32

 

what do you main with

 

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

 

but I did so

 

> mkoctfile TWUsetUserAgent.cc -LC:\TWUClib\lib -TWUClib.a

c:/programme/octave/3.0.2_gcc-4.3.0/mingw32/bin/../lib/gcc/mingw32/4.3.0-dw2/../../../../mingw32/bin/ld.exe: cannot open

 linker script file WUClib.a: No such file or directory

collect2: ld returned 1 exit status

octave-3.0.2.exe:134:C:\Programme\Octave

 

thanks



--- Michael Goffioul <address@hidden> schrieb am Di, 20.1.2009:
Von: Michael Goffioul <address@hidden>
Betreff: Re: mkoctfile problem
An: address@hidden
CC: address@hidden
Datum: Dienstag, 20. Januar 2009, 11:42

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]