我有Eclipse Neon和C ++,我试图在远程raspberry pi 3上运行非常简单的基本代码,但我看到下面的错误:
> pi@raspberrypi:~$ chmod 777
> /home/pi/Desktop/remote-debugging2;gdbserver :2345 /
> /home/pi/Desktop/remote-debugging2;exit Process
> /home/pi/Desktop/remote-debugging2 created; pid = 3681 Cannot exec
> /home/pi/Desktop/remote-debugging2: Exec format error.
>
> Child exited with status 127 No program to debug Exiting logout
简单的代码就像:
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
printf("SX1272 detected, starting.\n");
return 0;
}
我在Eclipse中的配置如下所示: