Simple test:
#include <string>
int main()
{
std::to_string(0);
return 0;
}
$ ppc-amigaos-g++ to_string-test.cpp -o to_string-test
to_string-test.cpp: In function 'int main()':
to_string-test.cpp:5:10: error: 'to_string' is not a member of 'std'
std::to_string(0);
^~~~~~~~~
I will look into the hints given here:
https://stackoverflow.com/questions/12 ... ember-of-std-says-g-mingwEdit:
Solved with these two steps:
1.
https://github.com/sba1/adtools/issues/58#issuecomment-4554418302. Added "-athread=native"
Now it compiles:
$ ppc-amigaos-g++ -athread=native to_string-test.cpp -o to_string-test
$ ppc-amigaos-readelf -h to_string-test
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: PowerPC
Version: 0x1
Entry point address: 0x10019bc
Start of program headers: 52 (bytes into file)
Start of section headers: 1132740 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 2
Size of section headers: 40 (bytes)
Number of section headers: 42
Section header string table index: 39
Edited by arfcarl on 2020/1/5 19:21:32