help-octave
[Top][All Lists]
Advanced

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

Re: using octave from a C++ program


From: Geraint Paul Bevan
Subject: Re: using octave from a C++ program
Date: Thu, 23 Oct 2003 09:25:54 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Hudson wrote:

| Here's the command line I'm using:
|
|>g++ -c test.cpp -I/usr/include/octave-2.1.40/octave/
- -I/usr/include/octave-2.1.40/
|>g++ -o test test.o -L/usr/include/octave-2.1.40/ -loctave -lcruft
- -loctinterp
|
|
| I get hundreds of lines of undefined references.

The file compiles using version 2.1.50 (but segfaults when run) using:

~ g++ -o test test.o -L/usr/lib/octave-2.1.50/ -loctave -lcruft
- -loctinterp -ldl -lm -lncurses -lkpathsea -lreadline -lblas -llapack
- -lfftw -lg2c


- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj+XkJAACgkQcXV3N50QmNMIKwCeMneJ00wzZLEY4SumitNBoJ+L
2O4Anj9UWndEZOI9IFBxIdX/KBRC8xBi
=FbnM
-----END PGP SIGNATURE-----



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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