Changes between Initial Version and Version 10 of Ticket #18323


Ignore:
Timestamp:
04/30/15 07:40:19 (7 years ago)
Author:
rws
Comment:

Sorry for specializing but only this guarantees that I will be working on it.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18323

    • Property Summary changed from switch to C++11 to switch to C++11 when compiling some cython files
  • Ticket #18323 – Description

    initial v10  
    1 C++11 is at least needed by NTL and a development version of Pynac, and it's the default with gcc5.
     1C++11 is needed by a development version of Pynac, and it's the default with gcc5.
    22
    3 https://en.wikipedia.org/wiki/C%2B%2B11
    4 
    5 The complications are eg compile errors in lcalc headers:
     3Sage needs `-std=c++11` for at least all files that import ginac headers, that is, for
    64{{{
    7 In file included from ../local/include/libLfunction/Lglobals.h:48:0,
    8                  from ../local/include/libLfunction/L.h:40,
    9                  from build/cythonized/sage/libs/lcalc/lcalc_sage.h:1,
    10                  from build/cythonized/sage/libs/lcalc/lcalc_Lfunction.cpp:337:
    11 ../local/include/libLfunction/Lcommon.h: In member function ‘void smallPoly<T>::resize(int)’:
    12 ../local/include/libLfunction/Lcommon.h:71:23: error: expected ‘;’ before ‘i’
    13    loop(i,this->N,N)
    14                        ^
    15 ../local/include/libLfunction/Lcommon.h:71:36: error: ‘i’ was not declared in this scope
    16    loop(i,this->N,N)
    17                                     ^
    18 ../local/include/libLfunction/Lcommon.h: In function ‘smallPoly<T>::poly operator*(const poly&, const poly&)’:
    19 ../local/include/libLfunction/Lcommon.h:87:15: error: there are no arguments to ‘typeof’ that depend on a template parameter, so a declaration of ‘typeof’ must be available [-fpermissive]
    20    loop(i,0,f.N) result[i]=0;
    21                ^
    22 ../local/include/libLfunction/Lcommon.h:87:15: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
     5src/sage/symbolic/constants_c.pyx
     6src/sage/symbolic/expression.pyx
     7src/sage/symbolic/function.pyx
     8src/sage/symbolic/getitem.pyx
     9src/sage/symbolic/pynac.pyx
     10src/sage/symbolic/ring.pyx
     11src/sage/symbolic/substitution_map.pyx
    2312}}}
    24 We don't want these to go through with `-fpermissive`.