[MacPorts] #60449: gcc10 missing header <wchar.h>
MacPorts
noreply at macports.org
Thu May 7 22:11:30 UTC 2020
#60449: gcc10 missing header <wchar.h>
-----------------------+----------------------
Reporter: haberg-1 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords: catalina
Port: gcc10 |
-----------------------+----------------------
Comment (by cjones051073):
Yes, this is likely due to the removal of /usr/include
Like clang, gcc now respects your SDKROOT setting, so this is the
recommendation now. i.e.
{{{
export SDKROOT=`xcrun --show-sdk-path`
}}}
then you should be fine.
{{{
> cat test.cpp
#include <iostream>
#include <wchar.h>
int main() {
wchar_t a = 99;
std::cout << "Test " << a << std::endl;
return 0;
}
> g++-mp-10 ./test.cpp
> ./a.out
Test 99
}}}
Another option is to install the command line tools package.
--
Ticket URL: <https://trac.macports.org/ticket/60449#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list