[MacPorts] #67934: edid-decode @20230804: error: use of undeclared identifier 'nullptr'
MacPorts
noreply at macports.org
Wed Aug 9 13:11:30 UTC 2023
#67934: edid-decode @20230804: error: use of undeclared identifier 'nullptr'
------------------------+-------------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: edid-decode
------------------------+-------------------------
https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/154784/steps
/install-port/logs/stdio
{{{
edid-decode.cpp:303:22: error: no member named 'to_string' in namespace
'std'
unsigned len = std::to_string(cta.preparsed_total_dtds).length();
~~~~~^
edid-decode.cpp:601:19: error: no member named 'to_string' in namespace
'std'
add_str(s, std::to_string(t->hsize_mm) + " mm x " +
std::to_string(t->vsize_mm) + " mm");
~~~~~^
edid-decode.cpp:601:60: error: no member named 'to_string' in namespace
'std'
add_str(s, std::to_string(t->hsize_mm) + " mm x " +
std::to_string(t->vsize_mm) + " mm");
~~~~~^
edid-decode.cpp:1652:3: error: use of undeclared identifier 'nullptr'
nullptr
^
edid-decode.cpp:1662:17: error: use of undeclared identifier 'nullptr'
if (opt_str == nullptr && opt != CVT_INTERLACED && opt != CVT_ALT
&&
^
edid-decode.cpp:1671:28: error: use of undeclared identifier 'nullptr'
*value = strtod(opt_str, nullptr);
^
}}}
The mention of `nullptr` makes clear that this software requires C++11,
and the compiler hasn't been told to use C++11 mode.
The solution will probably be something like:
{{{
compiler.cxx_standard 2011
configure.cxxflags-append -std=c++11
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67934>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list