Octave c++ and VS2010

后端 未结 2 764
醉梦人生
醉梦人生 2021-01-02 09:05

I\'m trying to Use Octave with Visual C++.

I have downloaded octave-3.6.1-vs2010-setup-1.exe. Created a new project, added octave include folder to incl

2条回答
  •  轮回少年
    2021-01-02 09:23

    I'd guess that its actually stopped pointing at the next line and the error actually lies at this line:

    f_arg(0) = octave_value(NumRands);
    

    You seem to be attempting to get a value (which value?) from a vector and then assigning it to element 0 of a vector that has not been defined as a vector.

    I don't really know though ... I've never tried writing octave code like that. I'm just trying to work it out by translating the code to standard matlab/octave code and that line seems really odd to me ...

提交回复
热议问题