I got the following compilation error while using GNU++20 1l.2.0 (64 biy, winlibs) compiler to translate and run a C++ program that contains the following include statement.
#include <bits/stdc++.h> #include <bits/extc++.h> using namespace std;
Invocation failed [COMPILATION_ERROR]
Can't compile file:
In file included from c:\programs\gcc11-64-winlibs\include\c++\11.2.0\x86_64-w64-mingw32\bits\extc++.h:81, from program.cpp:2:
fatal error: iconv.h: No such file or directory
40 | #include <iconv.h>
Used: 0 ms, 0 KB
Has any member of the community encountered this compilation error before and knows how to resolve it?
Thanks in advance for sharing any helpful information.
P.S. The compilation succeeds using GNU++17 7.3.1.
The issue was resolved.
Replacing the statement
#include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp>
was accepted by the GNU++20 11.2.0 compiler.