Код: Выделить всё
#include
int main() {
using namespace std;
println("Hello World!");
}
< /code>
Однако следующая команда не удалась: < /p>
# clang++-18 --target=x86_64-pc-windows-gnu -std=c++23 ./test.cpp -o ./test.exe --static -lstdc++exp
/usr/lib/gcc/x86_64-w64-mingw32/14-win32/libstdc++.a(eh_alloc.o): duplicate section `.rdata$_ZTSSt9exception[_ZTSSt9exception]' has different size
/usr/lib/gcc/x86_64-w64-mingw32/14-win32/libstdc++.a(eh_exception.o): duplicate section `.rdata$_ZTSSt9exception[_ZTSSt9exception]' has different size
...
(Many almost identical messages about duplicate sections)
Подробнее здесь: https://stackoverflow.com/questions/796 ... -and-mingw