tech-pkg archive

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

Re: proper fix for C++17?



On Sat, Feb 25, 2023 at 08:08:22AM -0500, Greg Troxel wrote:
> kicad was recently updated (yay) but it now depends on C++17.  In theory
> gcc7, in NetBSD 9, supports C++17, but it in fact does not, failing to
> provide <charconv>.
> 
> With the following, it builds and runs.   I picked gcc10 because
>   - that's what is in NetBSD 10
>   - it was installed already because something else needs it
> 
> Do people think this is ok, and if not do we have documentation
> somewhere about which versions are necessary for which C++ languages?

I usually try to guess from

https://gcc.gnu.org/projects/cxx-status.html

the minimum version of gcc that will support what the program needs
and try building with that, and if that doesn't work (has happened...)
increase GCC_REQD and try again.
 Thomas


Home | Main Index | Thread Index | Old Index