delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2021/09/20/16:45:11

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: <CACVaizS_6ZP5KLfmBvkCKK_Nu2PdFnZTby-TKRR8=Y-5GQb5Yg@mail.gmail.com>
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: <CACVaizS_6ZP5KLfmBvkCKK_Nu2PdFnZTby-TKRR8=Y-5GQb5Yg AT mail DOT gmail DOT com>
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]" <djgpp AT delorie DOT com>
Injection-Date: Mon, 20 Sep 2021 20:29:21 +0000
Bytes: 2401
Lines: 47
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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

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 <string> 
> 
> 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 <string_view> 
> | 
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019