-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I'm installing the control package 4.1.2 on a MacStudio from Octave 10.2, itself installed using MacPorts (Installing from Homebrew no longer produces a fully compatible version of Octave).
The Macports installation method requires the pkg install command to install pkgs from source. During this installation there are 16 errors relating to the macro OV_ISNUMERIC and its ken. These were removed in Octave 10 and are redefined in the configure file depending on the version of Octave. These macro definitions end up in confdefs.h and later in oct-alt-includes.h. However, those files aren’t necessarily included in the .cc files that use OV_ISNUMERIC, OV_ISREAL, etc. So the macros appear undefined to the compiler.
The solution would be to either include this at the top of all cc files
#include "oct-alt-includes.h"
or to replace the macros in the cc files themselves.
I did the latter and the install now proceeds without errors.