help-octave
[Top][All Lists]
Advanced

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

octave 2.1.30 and example/make_int.cc


From: en254
Subject: octave 2.1.30 and example/make_int.cc
Date: Sun, 23 Apr 2000 23:55:40 -0400 (EDT)

Hi,

I've just downloaded 2.1.30 and tried to get 
make_int.cc working with it.

It breaks with the following error

| > cp /usr/src/octave-2.1.30/examples/make_int.cc .
| > mkoctfile make_int.cc 
| make_int.cc:23: octave/config.h: No such file or directory
| In file included from /usr/local/include/octave-2.1.30/octave/dMatrix.h:36,
|                  from /usr/local/include/octave-2.1.30/octave/mx-base.h:30,
|                  from make_int.cc:33:
| /usr/local/include/octave-2.1.30/octave/data-conv.h:41: #error "No 2 byte
| integer type found!"
| /usr/local/include/octave-2.1.30/octave/data-conv.h:49: #error "No 4 byte
| integer type found!" 

it seems that ( SIZEOF_SHORT,SIZEOF_INT,SIZEOF_LONG ) are not defined.

I then tried

| > mkoctfile -v make_int.cc -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
| make_int.cc:23: octave/config.h: No such file or directory

It seems that config.h is now in 
/usr/local/include/octave-2.1.30/

so the #include  should be "config.h" not "octave/config.h"


My question is: Is there a non hacky way of getting make_int.cc
   to compile?



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



reply via email to

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