octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65528] (nurbs) should include <cassert>


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #65528] (nurbs) should include <cassert>
Date: Thu, 28 Mar 2024 15:11:41 -0400 (EDT)

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

                 Summary: (nurbs) should include <cassert>
                   Group: GNU Octave
               Submitter: dasergatskov
               Submitted: Thu 28 Mar 2024 07:11:40 PM UTC
                Category: Octave Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 28 Mar 2024 07:11:40 PM UTC By: Dmitri A. Sergatskov <dasergatskov>
Compiling on Octave 10 (dev):

/usr/local/bin/mkoctfile-10.0.0 --verbose -c low_level_functions.cc
g++ -std=gnu++17 -c  -fPIC -I/usr/local/include/octave-10.0.0/octave/..
-I/usr/local/include/octave-10.0.0/octave -I/usr/local/include  -pthread
-fopenmp -ggdb3 -O2 -march=native -mtune=native -mavx -mavx2 -flto=auto   
low_level_functions.cc -o low_level_functions.o
low_level_functions.cc: In function ‘int surfderivcpts(octave_idx_type,
octave_idx_type, const RowVector&, octave_idx_type, octave_idx_type, const
RowVector&, const Matrix&, octave_idx_type, octave_idx_type, octave_idx_type,
octave_idx_type, octave_idx_type, NDArray&)’:
low_level_functions.cc:292:15: error: ‘assert’ was not declared in this
scope
  292 |               assert (k<idxa(0) && i<idxa(2) && j-s1<idxa(3));
      |               ^~~~~~
low_level_functions.cc:23:1: note: ‘assert’ is defined in header
‘<cassert>’; did you forget to ‘#include <cassert>’?
   22 | #include <iostream>
  +++ |+#include <cassert>
   23 | 
low_level_functions.cc:320:19: error: ‘assert’ was not declared in this
scope
  320 |                   assert (k<idxa(0) && l<idxa(1)
      |                   ^~~~~~
low_level_functions.cc:320:19: note: ‘assert’ is defined in header
‘<cassert>’; did you forget to ‘#include <cassert>’?
make: *** [Makefile:34: low_level_functions.o] Error 1
make: Leaving directory '/tmp/oct-blKnTZ/nurbs-1.4.3/src'



The mxe-octave patch is:
https://hg.octave.org/mxe-octave/rev/ebdff9919577

Discussion:

https://octave.discourse.group/t/assert-panic-error-and-ndebug/5409/20

Dmitri.
-- 










    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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