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
Le samedi 18 septembre 2021 à 13:31:58 UTC+2, Josue Andrade Gomes (josuegomes@gmail.com) [via djgpp@delorie.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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 339 |
Nodes: | 16 (1 / 15) |
Uptime: | 88:57:18 |
Calls: | 7,480 |
Files: | 12,703 |
Messages: | 5,634,323 |