Creating Octave Builtin Functions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Creating Octave Builtin Functions

Justin Donnelly Summer Student
I am trying to add built-in functions to Octave using DEFUN:

  DEFUN ("hello", Fhello, Shello, 0, 0, "hello (): Greet the user")
    Octave_object retval;
    ostrstream output_buf;
    output_buf    << endl <<"Hello, World"
                  << endl << endl;
    output_buf << ends;
    maybe_page_output (output_buf);
    return retval;

But when I compile, I get a parse error in Is there some other bit
of code I need to add to define my own builtin functions?

Any help would be appreciated,
[hidden email]