[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mkoctfile --link-stand-alone
From: |
Jens Ruecknagel |
Subject: |
mkoctfile --link-stand-alone |
Date: |
Sat, 24 Apr 2004 16:56:11 +0200 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040208) |
Here is some code that works perfectly as dynamic loadable .oct file.
Now I try to build a stand alone.
I used:
mkoctfile -v --link-stand-alone ov_example.cc
It compiles but when I start ./a.out it just starts octave.
I never build a stand alone before.
Can you help me?
Thanks
=======================
#include <octave/oct.h>
#include <octave/oct-lvalue.h>
DEFUN_DLD(ov_example, args, , "ov_example")
{
octave_value a(40.7);
octave_value b(1.3);
octave_lvalue lhs( &b );
lhs.assign( octave_value::op_add_eq, a);
return octave_value(b);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mkoctfile --link-stand-alone,
Jens Ruecknagel <=