[Top][All Lists]

[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

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:([_ZTV5ArrayIdE]+0x20): undefined
> reference to `Array<double>::resize_fill_value() > const'
> embedded.o:([_ZTV6MArrayIdE]+0x20): undefined
> reference to 
> `Array<double>::resize_fill_value() const'
> embedded.o:([_ZTV7NDArray]+0x20): undefined
> reference to `Array<double>::resize_fill_value() > const'

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

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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