[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C/C++ using octave
From: |
viveks |
Subject: |
Re: C/C++ using octave |
Date: |
Tue, 18 Apr 2000 14:31:46 +0530 (IST) |
On Tue, 18 Apr 2000 I wrote:
> I am trying to get used to liboctave and related stuff in order to use the
> octave class facilties. I too tried the compile code test1.cc (shown at
> the end of the mail) as
>
> gcc test1.cc -L/usr/lib/octave -loctave -lcruft -lkpathsea -lreadline -lg2c
>
> I get the following error:
>
> /usr/lib/octave/liboctave.so: undefined reference to `kpse_clear_dir_cache'
> collect2: ld returned 1 exit status
I tried compiling with -shared option.
gcc test1.cc -shared -L/usr/lib/octave -loctave -lcruft -lkpathsea -lreadline
-lg2c
Although it compiles without any hitch, I get "Segmentation fault (core
dumped)" when I run a.out. I don't know the reason for segmentation
fault. After all, the code is just a few lines long.
#include <octave/oct.h>
main() {
Matrix A;
}
I would appreciate any help.
Regards,
Vivek...
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------