[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not par
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard |
Date: |
Thu, 27 Jan 2022 06:05:53 -0500 (EST) |
Follow-up Comment #38, bug #61812 (project octave):
>From GCC's documentation:
https://gcc.gnu.org/onlinedocs/gcc/Standards.html
> By default, GCC also provides some additional extensions to the C++ language
that on rare occasions conflict with the C++ standard. See Options Controlling
C++ Dialect. Use of the -std options listed above disables these extensions
where they they conflict with the C++ standard version selected. You may also
select an extended version of the C++ language explicitly with -std=gnu++98
(for C++98 with GNU extensions), or -std=gnu++11 (for C++11 with GNU
extensions), or -std=gnu++14 (for C++14 with GNU extensions), or -std=gnu++17
(for C++17 with GNU extensions), or -std=gnu++20 (for C++20 with GNU
extensions).
>
> The default, if no C++ language dialect options are given, is -std=gnu++17.
So, I would have thought no flags would be necessary to get the full set of
features for C++11 *with* GNU extensions with a modern GCC.
For some reason, the macro determines that it *does* need setting -std=gnu++11
to get what is requested...
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61812>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, (continued)
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, John W. Eaton, 2022/01/25
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Rik, 2022/01/25
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Markus Mützel, 2022/01/26
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Markus Mützel, 2022/01/26
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, anonymous, 2022/01/26
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, A.R. Burgers, 2022/01/27
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Markus Mützel, 2022/01/27
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Markus Mützel, 2022/01/27
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, A.R. Burgers, 2022/01/27
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Markus Mützel, 2022/01/27
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard,
Markus Mützel <=
- [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard, Markus Mützel, 2022/01/27