Question
When compiling with C + + 17, you will be prompted with “fatal error: variant: no such file or directory” error;
reason
STD:: variant is a feature of C + + 17. Although I compiled and installed gcc7.5.0, I still prompted this error
with the help of colleagues, the problem was solved because GCC did not switch to GCC 7.5.0;
apt-get install gcc-7
apt-get install gcc-7 g++-7
rm /usr/bin/g++
ln -s /usr/bin/g++-7 /usr/bin/g++
Test
1. C + + variables doesn’t like file directories
Accounting subject
Read More:
- [Solved] utils.c:33:18: fatal error: zlib.h: No such file or directory
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- [Solved] Linux R Pack Error: cram/cram_io.c:61:10: fatal error: lzma.h: No such file or directory
- [Solved] fatal error: Eigen/Geometry: No such file or directory
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] fatal error: bits/libc-header-start.h: No such file or directory
- fatal error: libusb.h: No such file or directory [How to Solve]
- [Solved] src/delly.h:8:42: fatal error: boost/graph/adjacency_list.hpp: No such file or directory
- SLAMBook2 in ch3 code run fatal error: Eigen/Core: No such file or directory
- [Solved] ROS fatal error: alsa/asoundlib. h: There is no such directory or file
- [Solved] VScode Run C++ File Error: fatal error:opencv2\core.hpp:No such file or diretory
- Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”
- [Solved] Opencv3. X fatal error: opencv2/nonfree/nonfree.hpp: there is no such file or directory
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- Containerd Error: btrfs/ioctl.h: No such file or directory
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory