delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2021/09/20/17:05:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=qoArSaYD5j/q3wE8fIJTQD1LZrqCUHYRn4EXoI3stkM=;
b=jtnvOZUvT2cfL0Rolxgw8G+mDeTgPvd0PI5ly6oGFO40X6GOg5zuuW8tSKyGbSa/eu
97Lk6qci8tNuUZGvU9iJSHoQiAbg9MiSjxNWvml5cfkoqL2RXbn5ZzfUTyCoFTNFJiI9
fRYCK+12m8iEc/zdej7/+x2UvMYfrhCVKTcXnvXLsuC+6PdsmYvtexkNaed73llygu3J
IIgStT9tWt8VtJ6b4Y+/gGzXZV7aKvCoyCF/cqdmhXFAOpTMDGdciMhKFPf6nQ5lj39Q
/+QE+eV+CPbGHOxNiqFs6OO7e9tdRS86bg8VwP+XRwOXoHl7bnWvdMh+4bu6HDCdyTZZ
dhuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=qoArSaYD5j/q3wE8fIJTQD1LZrqCUHYRn4EXoI3stkM=;
b=Nf1kiPR53b6lmhx0xRC1/mqeLIKUXNq54xAD8+1HrF15M31xozKn2Z36N4M8j8Qcd7
4K7hH58AnMx8NquTfnZX8PgaRPEGvGi2y7cVbSb27pAx4A9wIdxOxZeaH3SI/R6kylz4
Xptv3rhFQi54Hu+ydKcnvadk+ZIDWHmStc7QvPOlC4ACQZVQEs6FIAz4QXdVRnblWYsZ
azVmI2NEq+vWc30wNjA6rl/ztKZ9vWExD0Xv6PZ1KFlVpWCDtERcBZJMV7NjqQ8BWnPw
J3hr3aRWKCaOTdWUG4ng+hj7pcbAdk9PqKbTXYopZOKZdDSm+h8Meg5VuyLjWOf0h+YC
Efsw==
X-Gm-Message-State: AOAM530tPmZ/Jt6R8bJF7ZEOoJJNhejF8V2I7fLaDCUCe3Rp+gRRVIKO
ImIT1oQE0VUgZWMgQLSppy96ooccuPqmr09vfrWtAdvrKzqNBQ==
X-Google-Smtp-Source: ABdhPJxYArHZ/hpJnHd2AjYgBZjLBK7VxHG8QwhUvoHK/w9PH9rMGFYDcV4ej5ldd4M52jy1/XprLNruSNO+Oc9JdPk=
X-Received: by 2002:a5d:5986:: with SMTP id n6mr30382768wri.75.1632171904951;
Mon, 20 Sep 2021 14:05:04 -0700 (PDT)
MIME-Version: 1.0
References: <CACVaizS_6ZP5KLfmBvkCKK_Nu2PdFnZTby-TKRR8=Y-5GQb5Yg AT mail DOT gmail DOT com>
<378b5a1b-79de-4f7d-981b-a989e5e55af0n AT googlegroups DOT com>
In-Reply-To: <378b5a1b-79de-4f7d-981b-a989e5e55af0n@googlegroups.com>
From: "Josue Andrade Gomes (josuegomes AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Date: Mon, 20 Sep 2021 18:04:53 -0300
Message-ID: <CACVaizSKBm8GK7d-=yypAVMQ7=RFUH6Cjj-1KsYyWAx6a6zAdQ@mail.gmail.com>
Subject: Re: C++17 string_view not found
To: djgpp AT delorie DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 18KL58w5019409
Reply-To: djgpp AT delorie DOT com

Em seg., 20 de set. de 2021 às 17:45, pif DOT  DOT  DOT  AT gmail DOT com
(pif0017 AT gmail DOT com) [via djgpp AT delorie DOT com] <djgpp AT delorie DOT com>
escreveu:
>
> 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.
>

Thank you for the reply. I'm able to include files with long names eg:

#include <unordered_set>
#include <string_view>

int main()
{
}

Gives no error on unordered_set but gives an error on string_view.

- Raw text -


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