shsajjadi / OctaveCoder

Octave Coder __ A code generator and build system that converts Octave to C++
Other
25 stars 3 forks source link

Won't compile with GNU Octave, version 6.4.0 #43

Open endoveg opened 2 weeks ago

endoveg commented 2 weeks ago

/home/disk/ia-rjt/GaussNewtonMinLeakage.cc: In constructor ‘coder::Symbol::Symbol(const char*, const char*, const char*, coder::file_type)’: /home/disk/ia-rjt/GaussNewtonMinLeakage.cc:2816:30: error: ‘::load_fcn_from_file’ has not been declared; did you mean ‘octave::load_fcn_from_file’? 2816 | = OCTAVE_DEPR_NS load_fcn_from_file (fullname, path, "", "", fcn_name, true); | ^~~~~~~~~~~~~~~~~~ | octave::load_fcn_from_file In file included from /home/disk/ia-rjt/GaussNewtonMinLeakage.cc:1715: /usr/include/octave-6.4.0/octave/parse.h:680:3: note: ‘octave::load_fcn_from_file’ declared here 680 | load_fcn_from_file (const std::string& file_name, | ^~~~~~~~~~~~~~~~~~ warning: mkoctfile: building exited with failure status error: coder: compile error

shsajjadi commented 2 weeks ago

Thanks for reporting the bug! It is a regression beginning from coder 1.7 that omits prepending octave:: namespace to the function "load_fcn_from_file".

I pushed the following fix 7a5177.

You can clone the repository and make a tar.gz from the repository and install the package before the release of a new version.