From help-octave-request at bevo dot che dot wisc dot edu Thu Nov 8 23:47:27 2001 Subject: FYI: Compiling stand alone programs, another example.... From: "John W. Eaton" To: Douglas Eck Cc: "help-octave at bevo dot che dot wisc dot edu" Date: Thu, 8 Nov 2001 23:46:44 -0600 On 18-Oct-2001, Douglas Eck wrote: | I am able to compile a stand-alone program linked against liboctave. | I did it on a debian "sid" box. | | For future reference, here is the makefile and the program code. | It is similar to other examples on this list, but I found I needed | a couple of different libraries. Note as well that I needed | kpathsea from Octave. I believe this has been mentioned before. In 2.1.36 (or the current CVS sources, if you want it now) you won't need to link to the readline and kpathsearch libraries if all you want is numerical stuff from liboctave. I don't think you need the hdf5 library now, even if you configured and compiled Octave to use that library, since it is only used in load-save.cc (part of the interpreter) and not referenced by anything in liboctave. jwe | Regards, | Doug Eck | | | Source Code: | -------------------SNIP---------------------------- | #include | int main(void) { | int sz=20; | Matrix m = Matrix(sz,sz); | for (int r=0;r