[bug #68432] Example code globaldemo.cc no longer compiles with mkoctfile

Rik <[email protected]> Mon, 8 Jun 2026 02:41:56 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

URL:
  <https://savannah.gnu.org/bugs/?68432>

                 Summary: Example code globaldemo.cc no longer compiles with
mkoctfile
                   Group: GNU Octave
               Submitter: rik5
               Submitted: Mon 08 Jun 2026 08:41:48 AM CEST
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: Confirmed
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked
                 Release: 11.1.0
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 08 Jun 2026 08:41:48 AM CEST By: Rik <rik5>
Octave has several examples of oct-file code in the directory etc/examples/.
These can be compiled with *mkoctfile* and used by the interpreter.

However, the file *globaldemo.cc* no longer compiles and instead fails with
the following messages:

mkoctfile globaldemo.cc
globaldemo.cc: In function ‘octave_value_list
Fglobaldemo(octave::interpreter&, const octave_value_list&, int)’:
globaldemo.cc:15:29: error: ‘class octave::symbol_table’ has no member
named ‘global_varval’
   15 |   octave_value tmp = symtab.global_varval (s);
      |                             ^~~~~~~~~~~~~
globaldemo.cc:22:10: error: ‘class octave::symbol_table’ has no member
named ‘global_assign’
   22 |   symtab.global_assign ("a", 42.0);
      |          ^~~~~~~~~~~~~


Apparently this isn't new.  I went back through versions of Octave to 8.4.0
and I still get this error.








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68432>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaiZkNAAKCRCqLAuaBUf3
Tr+vAP9ws/HWWiaEISTeVvqVzix0TqGt2R7DeGvYExZPyxrukAEAhGs1sqypqA+G
Br6p1F+6MtlfV//innMo5twRC3LH1Ao=
=14fD
-----END PGP SIGNATURE-----