[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Call C++ from Octave
From: |
Philip Nienhuis |
Subject: |
Re: Call C++ from Octave |
Date: |
Fri, 16 May 2014 08:21:26 -0700 (PDT) |
angelsanct wrote
> 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?
This:
c:\program files\octave-3.8.1\....<snip>
^^^^^^^^^^
In spite of all warnings and READMEs, you've installed Octave in a path
containing spaces.
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/Call-C-from-Octave-tp4664108p4664112.html
Sent from the Octave - General mailing list archive at Nabble.com.