help-octave
[Top][All Lists]
Advanced

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

Call C++ from Octave


From: angelsanct
Subject: Call C++ from Octave
Date: Fri, 16 May 2014 04:21:55 -0700 (PDT)

Dear all,

I'm trying to call C++ from Octave 3.8.1

I created a new Folder, c:\Projects and I add Helloworld.cc file inside it.

#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 ();
}

Then from the command window I write this command: mkoctfile -c
helloworld.cc

Octave Returns me this error: 
c:\program files\octave-3.8.1\include\setjmp.h:11:32: error: expected
declaration before end of line
 #pragma pack(push,_CRT_PACKING)

What's wrong?



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Call-C-from-Octave-tp4664108.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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