Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22006

charconv header not found gcc 12

$
0
0

I'm running Debian 9 on WSL 2 and I'm trying to compile C++ code that uses the <charconv> header. I have the line set(CMAKE_CXX_STANDARD 17) in my Cmake file so it's definitely using C++ 17 but when I compile it I get this error message

In file included from /mnt/d/blang/frontend/Token.cc:5:0:/mnt/d/blang/frontend/Token.h:11:20: fatal error: charconv: No such file or directory #include <charconv>

I build GCC 12 from source and installed it. When I run gcc -v I get this.

Using built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapperTarget: x86_64-pc-linux-gnuConfigured with: ./configure --disable-multilibThread model: posixSupported LTO compression algorithms: zlibgcc version 12.1.0 (GCC) 

How do I fix this?


Viewing all articles
Browse latest Browse all 22006

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>