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

I tried to do the compilation suggested in Octave Manual:
on the Dynamically Linked Function.

However , I got this error: In function ‘octave_value_list Foregonator(const octave_value_list&, int)’: 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.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: