X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 2002:a0c:e102:: with SMTP id w2mr27427195qvk.44.1632169761401; Mon, 20 Sep 2021 13:29:21 -0700 (PDT) X-Received: by 2002:a5b:612:: with SMTP id d18mr34907945ybq.113.1632169761163; Mon, 20 Sep 2021 13:29:21 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Mon, 20 Sep 2021 13:29:20 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb05:8791:fb00:215:17ff:fe89:c479; posting-account=4BuJbwoAAAAIG68eUeYsXc5NjD2uAegj NNTP-Posting-Host: 2a01:cb05:8791:fb00:215:17ff:fe89:c479 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <378b5a1b-79de-4f7d-981b-a989e5e55af0n@googlegroups.com> Subject: Re: C++17 string_view not found From: "pif DOT DOT DOT AT gmail DOT com (pif0017 AT gmail DOT com) [via djgpp AT delorie DOT com]" Injection-Date: Mon, 20 Sep 2021 20:29:21 +0000 Content-Type: text/plain; charset="UTF-8" Bytes: 2401 Lines: 47 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 18KKj1H6015909 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Le samedi 18 septembre 2021 à 13:31:58 UTC+2, Josue Andrade Gomes (josuegomes AT gmail DOT com) [via djgpp AT delorie DOT com] a écrit : > Hi, > > Trying to build this simple program: > > #include > > int main() > { > std::string s("Hello world"); > } > > with: > gpp --std=c++17 -c SIMPLE.CPP > > results in error: > In file included from c:/djgpp/include/cxx/10/string:55, > from SIMPLE.CPP:1: > c:/djgpp/include/cxx/10/bits/basic_string.h:48:11: fatal error: > string_view: No such file or directory (ENOENT) > 48 | # include > | > compilation terminated. > > However with: > gpp -c SIMPLE.CPP > > It compiles fine. > > The file DJGPP/INCLUDE/CXX/10/STRING.VIE is there. > > I have installed the following files: > djdev205.zip > bnu2351b.zip > gcc1030b.zip > gpp1030b.zip > mak43b.zip > > Running in a DOSBOX under Ubuntu Linux. > > Any idea? > josue Hi Josue, You are using a DOS environement without long file name suport. Install a tool that will give it to you on dosbox or try to use a cross compiler.