Syntax error: “(” unexpected

前端 未结 2 1143
闹比i
闹比i 2021-01-22 18:17

I am trying to compile code using gcc and run the executable, but it is throwing error:

gcc somefile.c -o somefile

compilation goes through su

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-22 18:51

    your somefile is executable binary, it's not shell script. you should execute it by:

    $./somefile
    

提交回复
热议问题