help-octave
[Top][All Lists]
Advanced

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

Re: New User and how to use octave in c code ?


From: Progressive
Subject: Re: New User and how to use octave in c code ?
Date: Wed, 26 Apr 2017 12:21:38 -0700 (PDT)

I tried now
https://www.daniweb.com/programming/software-development/threads/297336/gnu-octave-for-c-how-to-start

and removed in all lines in octave.h the "OCTINTERP_API"

Now I gain different errors :) By using #include <octave.h> I get

> error: ‘Matrix’ was not declared in this scope
>  Matrix a_matrix = Matrix (n, n);
>  ^
>embedded.cpp:10:9: error: expected ‘;’ before ‘a_matrix’
>  Matrix a_matrix = Matrix (n, n);

and by using #include <oct.h> I get

> In function `Array<double>::Array(dim_vector const&)':
> /usr/include/octave-4.0.2/octave/Array.h:176: undefined reference to
> `dim_vector::safe_numel() const'
> embedded.o: In function `main':
> /home/analysis/Filter/Octave/embedded.cpp:16: undefined reference to
> `operator<<(std::ostream&, Matrix const&)'
> embedded.o:(.data.rel.ro._ZTV5ArrayIdE[_ZTV5ArrayIdE]+0x20): undefined
> reference to `Array<double>::resize_fill_value() > const'
> embedded.o:(.data.rel.ro._ZTV6MArrayIdE[_ZTV6MArrayIdE]+0x20): undefined
> reference to 
> `Array<double>::resize_fill_value() const'
> embedded.o:(.data.rel.ro._ZTV7NDArray[_ZTV7NDArray]+0x20): undefined
> reference to `Array<double>::resize_fill_value() > const'

is this complete nonsense or something to work on ?
embedded.o:(.data.rel.ro._ZTV6Matrix[_ZTV6Matrix]+0x20): undefined reference
to `Array<double>::resize_fill_value() const'
collect2: error: ld returned 1 exit status




--
View this message in context: 
http://octave.1599824.n4.nabble.com/New-User-and-how-to-use-octave-in-c-code-tp4683024p4683053.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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