help-octave
[Top][All Lists]
Advanced

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

Re: problems with starting examples


From: Geraint Paul Bevan
Subject: Re: problems with starting examples
Date: Fri, 21 Nov 2003 19:11:04 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

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

Sebastian Soberski wrote:
| Hi,
|
| I have alredy installed octave_2.0.17, but when I type:
|
|       /octave/octave-2.0.17/examples > g++ -o hello hello.cc
|
| i obtain such a message:
|
|     hello.cc:54: octave/config.h: No such file or directory
|     hello.cc:58: octave/defun-dld.h: No such file or directory
|     hello.cc:59: octave/error.h: No such file or directory
|     hello.cc:60: octave/oct-obj.h: No such file or directory
|     hello.cc:61: octave/pager.h: No such file or directory
|     hello.cc:62: octave/symtab.h: No such file or directory
|     hello.cc:63: octave/variables.h: No such file or directory
| What is wrong?
| I seems to have problem with paths.
| HELP!!!!!!!!
|
| Best regards
| Sebastiano
|
|


There are many directories that need to be included in the library
search path to compile C++ files for Octave:

~ -L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERSION} -loctave -lcruft
- -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERSION} -ldl
- -lm -lncurses -lkpathsea -lreadline -lblas -llapack -lfftw -lg2c

However, the script "mkoctfile" usually takes care of all this for you
so you would normally just type:

mkoctfile hello.cc

and the file hello.oct would result.

I am not entirely certain whether version 2.0.17 includes the mkoctfile
script, but you would probably be better advised to install one of the
more recent 2.1.xx series versions if you are going to be using dynamic
functions. The latest of these (2.1.51) can be downloaded from
ftp://ftp.octave.org/pub/octave/bleeding-edge

- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iEYEARECAAYFAj++Y0cACgkQcXV3N50QmNPNbQCdGO/hkqiLw5pE7Jf8MnIZjDY5
1tkAn04eDNyGrMrMz3QPnIWkybjK4XNw
=yffo
-----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]