argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Require support for GCC 7

Open JieRen98 opened this issue 2 years ago • 3 comments

Hi,

GCC 7 does not have header charconv, could you add some macro for supporting the earlier compilers?

Best regards, Jie

JieRen98 avatar Jun 09 '22 03:06 JieRen98

argparse is a C++17 project and GCC 7 does not fully support C++17. My preference is to not add complexity to extend support back to older compilers. You could use argparge v2.1 or earlier to avoid the need for the charconv header.

Out of curiosity, what platform are you using that does not support GCC > v7 and has a command line interface?

skrobinson avatar Jun 09 '22 20:06 skrobinson

For me: Intel's DPC++ SYCL compiler. The drivers for the FPGA hardware we are targeting only support Red Hat 7, and the intel toolchain requires an underlying GCC 7.4 to run on that OS.

Still, I expect that using v2.1 should be sufficient for our case.

ndevenish avatar Jul 22 '22 15:07 ndevenish

I can confirm that v2.1 builds on

$ lsb_release -d
Description:	Ubuntu 18.04.6 LTS
$ g++ --version | head -n 1
g++ (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0

tdakhran avatar Sep 05 '22 12:09 tdakhran

You can replace charconv with other open source implementation such as mscharconv

weiqishen avatar May 26 '23 06:05 weiqishen