GCC Cross compile to a i586 architecture (Vortex86DX)
问题 I have Ubuntu 12.01 with gcc 4.8.2 and would like to cross compile for the Vortex86DX CPU running an old 2.6.23 kernel. I´m trying the following testing code: #include <iostream> int main() { std::cout << "Hello world" << std::endl; } That is compiled using the following command line: g++ -static-libgcc -static-libstdc++ -march=i586 test.cpp -otest586 When I run the test586 on the target architecture I´m getting this error: $ ./test586 ./teste586: symbol lookup error: ./test586: undefined