octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60687] octave control: Undefined symbols for


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #60687] octave control: Undefined symbols for architecture x86_64
Date: Fri, 28 May 2021 16:38:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Follow-up Comment #4, bug #60687 (project octave):

The nan package uses the mex interface.

Can you try a basic oct file like examples/code/helloworld.cc:
https://hg.savannah.gnu.org/hgweb/octave/file/97e12df28ee6/examples/code/helloworld.cc


#include <octave/oct.h>

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

  // Return empty matrices for any outputs
  octave_value_list retval (nargout);
  for (int i = 0; i < nargout; i++)
    retval(i) = octave_value (Matrix ());

  return retval;
}



>> mkoctfile helloworld.cc
>> [x, y, z] = helloworld (1, 2, 3, 4);
Hello World has 4 input arguments and 3 output arguments.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60687>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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