[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems compiling dynamic loadable c files
From: |
John W. Eaton |
Subject: |
Problems compiling dynamic loadable c files |
Date: |
Thu, 13 Nov 2003 10:53:50 -0600 |
On 13-Nov-2003, Jens Becker <address@hidden> wrote:
| I want to replace a .m-file with the right-hand-side of a nonlinear
| diff.eq. by a c file to improve performance (for use with lsode).
| I started with the example file oregonator.cc, that I compiled with
| "mkoctfile oregonator.cc".
| I get these errors:
|
| oregonator.cc: In function `octave_value_list Foregonator(const
| octave_value_list&, int)':
| oregonator.cc:15: error: conversion from `Array<double>' to non-scalar
| type `ColumnVector' requested
Try changing the line
ColumnVector x = args(0).vector_value ();
to be
ColumnVector x (args(0).vector_value ());
instead.
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
-------------------------------------------------------------