The error isn’t that it’s the wrong architecture, it’s that std::cout (and other symbols) isn’t defined.
You should compile and link with g++ not gcc, to automatically link with correct C++ libraries.
The error isn’t that it’s the wrong architecture, it’s that std::cout (and other symbols) isn’t defined.
You should compile and link with g++ not gcc, to automatically link with correct C++ libraries.