I build Toradex 5.7.2 dunfell with meta-clang dunfell-clang12
there were no problems, after install SDK I have clang compiler.
But I have problem link “Hello world”
#include <iostream>
int main(int, char**) {
std::cout << "Hello, world!\n";
}
`aarch64-tdx-linux-clang++ --target=aarch64-tdx-linux --sysroot=/opt/tdx-xwayland/5.7.2/sysroots/aarch64-tdx-linux -v main.cpp
main.cpp:(.text+0x14): undefined reference to std::__1::cout' ....... clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
log.txt
where to find solution?