help-octave
[Top][All Lists]
Advanced

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

liboctave-dev: #include bugs


From: Aidan Macdonald
Subject: liboctave-dev: #include bugs
Date: Wed, 4 Feb 2015 19:14:25 -0800

Hi,

I am using Ubuntu 14.10, I don't know if this is Ubuntu specific.

I am trying to build a program using liboctave-dev. I got the below error
/usr/include/octave-3.8.1/octave/oct.h:31:20: fatal error: config.h: No such file or directory
 #include <config.h>

I edited the file and changed
#include <config.h> ==> #include "config.h"

After fixing the previous, I got
/usr/include/octave-3.8.1/octave/comment-list.h:28:23: fatal error: base-list.h: No such file or directory
 #include <base-list.h>

And I fixed it in comment-list.h by changing
#include <base-list.h> ==> #include "base-list.h"

Which led to this bug
/usr/include/octave-3.8.1/octave/file-io.h:30:8: error: ‘OCTINTERP_API’ does not name a type
 extern OCTINTERP_API void initialize_file_io (void);
        ^
/usr/include/octave-3.8.1/octave/file-io.h:32:8: error: ‘OCTINTERP_API’ does not name a type
 extern OCTINTERP_API void close_files (void);
        ^
/usr/include/octave-3.8.1/octave/file-io.h:34:8: error: ‘OCTINTERP_API’ does not name a type
 extern OCTINTERP_API void mark_for_deletion (const std::string&);
        ^
/usr/include/octave-3.8.1/octave/file-io.h:36:8: error: ‘OCTINTERP_API’ does not name a type
 extern OCTINTERP_API void cleanup_tmp_files (void);

Which I fixed in file-io.h by adding
#include "config.h"
after the line 
#define octave_file_io_h 1


Aidan Plenert Macdonald

reply via email to

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