Error in compiling Dynamically Linked Function (.oct files) in Octave

I tried to do the compilation suggested in Octave Manual:
http://www.network-theory.co.uk/docs/octave/octave_90.html
on the Dynamically Linked Function.

However , I got this error:
oregonator.cc: In function ‘octave_value_list Foregonator(const octave_value_list&, int)’:
oregonator.cc:7: error: conversion from ‘Array’ to non-scalar type ‘ColumnVector’ requested

There is a solution in the Octave forum here.

Basically we need to change this line
ColumnVector x = args(0).vector_value ();

to this one
ColumnVector x (args(0).vector_value ());

Then the code compiles successfully.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: