[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: clues to statically building octave w/extensions?
From: |
adler |
Subject: |
Re: clues to statically building octave w/extensions? |
Date: |
Tue, 12 Jun 2001 21:25:59 -0400 (EDT) |
On Tue, 12 Jun 2001, John W. Eaton wrote:
> I assume you are using 2.1.x. As Dirk said, you can drop the
> functions in with the sources, and that's about it. If you put the
> functions in the src/DLD-FUNCTIONS directory, then you would also
> need to add the names of the .cc files to the DLD_XSRC list in
> src/Makefile.in and then run
>
> CONFIG_FILES=src/Makefile ./config.status
> make
>
> in the top-level build directory.
>
I've found (at least for the win32 build) that you need
to edit the include files section as well. I posted my recipe
in http://www.octave.org/mailing-lists/help-octave/2000/1639
Change the includes in foobar.cc
replace #include <oct.h>
with #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "utils.h"
_______________________________________
Andy Adler, address@hidden
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------