help-octave
[Top][All Lists]
Advanced

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

Creating Octave Builtin Functions


From: Justin Donnelly Summer Student
Subject: Creating Octave Builtin Functions
Date: Wed, 17 Jul 1996 14:53:23 -0700

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 builtins.cc. Is there some other bit
of code I need to add to define my own builtin functions?

Any help would be appreciated,
Justin
address@hidden


reply via email to

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