help-octave
[Top][All Lists]
Advanced

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

Re: Simple oct function


From: Iago Mosqueira
Subject: Re: Simple oct function
Date: Thu, 8 Aug 2002 18:09:27 +0100

Finally it works. Forgot to add spaces at the start of line in fortran...

Many thanks again


iago


----- Original Message -----
From: "John W. Eaton" <address@hidden>
To: "Iago Mosqueira" <address@hidden>
Cc: <address@hidden>
Sent: 08 August 2002 17:56
Subject: Re: Simple oct function


> On  8-Aug-2002, Iago Mosqueira <address@hidden> wrote:
>
> | OK, thanks to John Eaton and Andrei Romanenko the function looks like
this,
> | but although it compiles fine, when I call it from octave I get a
relocation
> | error: udefined symbol in addone_ and octave crashes.
> |
> | Any idea?
>
> How did you compile it?
>
>   mkoctfile addone.cc addone.f
>
> ??  If both files are named addone, you'll have some trouble, because
> one of the .o files will overwrite the other, I think.  Try renaming
> the Fortran file to something else, say add1.f, and then
>
>   mkoctfile addone.cc add1.f
>
> should work (it did for me, with Octave 2.1.x).
>
> jwe
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
>



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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