[Top][All Lists]

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

Re: compiling a stand alone ...

From: Nimrod Mesika
Subject: Re: compiling a stand alone ...
Date: Fri, 13 Oct 2000 13:02:29 +0200
User-agent: Mutt/1.2i

On Fri, Oct 13, 2000 at 04:28:28PM +1100, flatmax wrote:
> Here is a stand alone program I would like to compile.
> If possible I would prefer to not use mkoctfile, as I am embedding this in
> a much much larger program...... any methods ?
> thank you
> Matt
> ______________________ BEGIN FILE ________________________
> /* To Compile (please help here): g++ -loctave -o octaveTest
> */
> #include <octave/oct.h>
> main(){
> ColumnVector dx (3);
> }
> ___________________ END FILE _________________________

This is the Makefile I use to compile your standalone example:

LDFLAGS=-L/usr/local/lib/octave-2.1.30 -loctave  -lcruft -lstdc++ -lg2c


stand:  ${OBJS} 
        cc -o stand ${OBJS} ${LDFLAGS}

This one works on FreeBSD-4. Not sure about other systems. liboctave
and libcruft are part of Octave. libstdc++ is a gcc library and
libg2c is the g77 library.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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