octave-maintainers
[Top][All Lists]
Advanced

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

Re: Creating a standalone executable


From: JD Cole
Subject: Re: Creating a standalone executable
Date: Fri, 13 Dec 2002 14:17:50 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827

Thanks Paul, worked like a charm. (Code included below for those on-lookers.) As for the compilation steps, should "-lkpathsea -loctinterp" be default linker arguments to "mkoctfile --link-stand-alone"? If so I will create a patch.

-JD

the code
========================
#include <octave/oct.h>
#include <octave/ops.h> // added this include for install_ops definition

#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
 install_types ();

 // Important that types are installed before ops
 install_ops ();

 octave_value a(10.0),b(20.0),c;

 c = a + b;

 c.print(cout);

 return (0);
}
===================


Paul Kienzle wrote:

And you probably want install_types () as well.  I'm surprised it gets to
the operator lookup without it.

- Paul




reply via email to

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