【解决方案】bash: ./tcp_service: cannot execute binary file

arm-none-linux-gnueabi-gcc -o tcp_service tcp_service.c

由于使用的是交叉编译环境,生成的目标代码是用于arm开发板,故在x86电脑上无法使用。

原文地址:https://www.cnblogs.com/lvdh1314/p/6480595.html