[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
oregonator prints %.-1e
From: |
John W. Eaton |
Subject: |
oregonator prints %.-1e |
Date: |
Wed, 7 May 1997 14:34:45 -0500 |
On 7-May-1997, Jeff Mason <address@hidden> wrote:
| I recently installed octave 2.0.5 on Linux - the interpreter
| works fine but when I make the oct-file example oregonator.oct
| it prints the following when run:
|
| octave:1> oregonator([1,2,3],0)
| ans =
|
| %.-1e
| %.-1e
| %.-1e
|
| octave:2>
|
| removing the .oct file and running the .m file gives the right answer.
|
| Does anyone recognize this problem?
Did you use --enable-shared when you configured octave? I seem to
remember seeing this problem when I used dynamic linking on a Linux
system without shared versions of the Octave libraries.
| I am also trying to use the octave
| libraries but whenever I link against libf2c I get the link error:
|
| /usr/lib/libf2c.so: undefined reference to 'MAIN__'
|
| I get this *any* time I link to that lib, by adding -lf2c to a gcc
| command to compile a typical hello.c for instance. Can anyone tell me
| what I need to do here?
Pass -u MAIN__ to gcc when you are linking.
jwe