[Top][All Lists]

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

oct files

From: branganj
Subject: oct files
Date: Mon, 31 Mar 2003 19:31:49 +0100

I have tried to dynamically link a function, but I get the following warnings:

With mkoctfile  I get: In function `class octave_value_list Fmpi_mm(const class 
octave_value_list &, int)': warning: unused variable `int nbytes' warning: control reaches end of non-void function 
`Fmpi_mm(const octave_value_list &, int)'

There is an oct file created, but in octave when I call the function it gives 

error: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete

Segmentation fault (core dumped)

I have defined the function with DEFUN_DLD (mpi_mm, , ,"Parallel 
multiplication of two matrices using mpi")

And execution is throug mpi_mm(0,0)

So I shouldn't be passing in any octave_value_lists??Or is it ok to leave it 
Do I need to have a return value? Can this be an octave_matrix ? At the moment 
I have it only printing out stuff, but I have tried with another type 
returning an octave_matrix, but this doesn't get a .oct file created.

Any ideas????????

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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