[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling a stand alone ...
From: |
Andy Adler |
Subject: |
Re: compiling a stand alone ... |
Date: |
Fri, 13 Oct 2000 21:19:49 -0400 (EDT) |
On Fri, 13 Oct 2000, Nimrod Mesika wrote:
> On Fri, Oct 13, 2000 at 04:28:28PM +1100, flatmax wrote:
> > Here is a stand alone program I would like to compile.
> > ______________________ BEGIN FILE octaveTest.cc ________________________
> > #include <octave/oct.h>
> >
> > main(){
> > ColumnVector dx (3);
> > }
> > ___________________ END FILE ocaveTest.cc _________________________
> This is the Makefile I use to compile your standalone example:
>
> OCTAVEINCLUDE=/usr/local/include/octave-2.1.30
> CXXFLAGS:= -I${OCTAVEINCLUDE}/octave -I${OCTAVEINCLUDE}
> LDFLAGS=-L/usr/local/lib/octave-2.1.30 -loctave -lcruft -lstdc++ -lg2c
>
> OBJS=stand.o
>
> 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.
I'm also interested in doing this. I tried this approach, but
am unable to get this one to work for me.
I'm using RH linux 6.2.
I get a whole series of link error like this
> cc stand.o -L/usr/local/lib/octave-2.1.31 -loctave -lcruft Ü
-lstdc++ -lg2c
/usr/local/lib/octave-2.1.31/liboctave.so: undefined reference to
`append_history'
/usr/local/lib/octave-2.1.31/liboctave.so: undefined reference to
`rl_deprep_term_function'
/usr/local/lib/octave-2.1.31/liboctave.so: undefined reference to
`dlerror'
_______________________________________
Andy Adler, address@hidden
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- compiling a stand alone ..., flatmax, 2000/10/13
- Re: compiling a stand alone ..., flatmax, 2000/10/13
- Re: compiling a stand alone ..., Nimrod Mesika, 2000/10/13
- Re: compiling a stand alone ...,
Andy Adler <=
- Re: compiling a stand alone ..., Paul Kienzle, 2000/10/14
- Re: compiling a stand alone ..., Andy Adler, 2000/10/15
- Re: compiling a stand alone ..., John W. Eaton, 2000/10/15
- Re: compiling a stand alone ..., Andy Adler, 2000/10/16
- Re: compiling a stand alone ..., John W. Eaton, 2000/10/17
- Re: compiling a stand alone ..., Paul Kienzle, 2000/10/16