Transcript of "C Program Runs on Wrong Target Platform(CPU Architecture)"
C Program Runs On
Wrong Target Platform(CPU architecture)
When running your written C (language) program in Linux system and it shows following error messages:
line 1: syntax error: redirection unexpected
line 1: syntax error: unexpected ")"
line 1: Syntax error: "(" unexpected
, for example,
, you might need to check if your C program was built for the target platform(CPU architecture: x86, ARM,
MIPS, etc) the program will run on.
Check what CPU architecture the built C program built for using command:
$ file YourBuilt_C_Program
View target system your C program will run on using command:
$ cat /proc/cpuinfo