view examples/helloworld.cc @ 14167:906eecd4bf43 stable

directly link eigs.oct with ARPACK libs if needed * src/DLD-FUNCTIONS/module-files (eigs.cc): Include ARPACK flag and library variables.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jan 2012 16:49:16 -0500
parents db1f49eaba6b
children be41c30bcb44
line wrap: on
line source

#include <octave/oct.h>

DEFUN_DLD (helloworld, args, nargout,
  "Hello World Help String")
{
  int nargin = args.length ();
  octave_stdout << "Hello World has " << nargin
        << " input arguments and "
        << nargout << " output arguments.\n";
  return octave_value_list ();
}