[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New User and how to use octave in c code ?
From: |
Progressive |
Subject: |
New User and how to use octave in c code ? |
Date: |
Tue, 25 Apr 2017 09:40:54 -0700 (PDT) |
Hi,
I'm glad I stumbled over octave as it looks very promising. Just wanted to
do my first steps by including octave into my c++ code but it does not work.
Sorry for the very general question, actually I'm facing too many
impressions..
By starting octave in shell through "$ octave" I receive the following:
"Octave Critical Error
The settings file /home/ben/.config/octave/qt-settings does not exist and
can not be created.
Make sure you have read and write permissions to /home/ben/.config/octave
Octave GUI must be closed now"
Hence, as mentioned on
https://www.gnu.org/software/octave/doc/v4.0.3/Standalone-Programs.html#Standalone-Programs
by using
#include <iostream>
#include <octave/oct.h>
it in a code I get
"/home/ben/analysis/analyse_tree/Filter/Filter.cxx:2:10: fatal error:
'octave/oct.h' file not found
#include <octave/oct.h>
^
Warning in <TInterpreter::TCling::RegisterModule>: Problems in compiling
forward declarations for module libGraf3d: '
#line 1 "libGraf3d dictionary forward declarations' payload"
#pragma clang diagnostic ignored "-Wkeyword-compat"
#pragma clang diagnostic ignored "-Wignored-attributes"
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage""
According to my ubuntu software center it is installed successfully in
/usr/share/octave
Version is 4.0.2
Can anyone please help ? Thank you very much in advance!
--
View this message in context:
http://octave.1599824.n4.nabble.com/New-User-and-how-to-use-octave-in-c-code-tp4683024.html
Sent from the Octave - General mailing list archive at Nabble.com.
- New User and how to use octave in c code ?,
Progressive <=
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/25
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/26
- Re: New User and how to use octave in c code ?, Mike Miller, 2017/04/26
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/26
- Re: New User and how to use octave in c code ?, Mike Miller, 2017/04/26
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/26
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/26
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/26
- Re: New User and how to use octave in c code ?, Progressive, 2017/04/27
- Re: New User and how to use octave in c code ?, Mike Miller, 2017/04/27