linux - gcc compile confuse in Ubuntu 16.04.1 LTS -
in ubuntu 16.04.1 lts, wrote hello.c following:
#include <stdio.h> int main(void) { printf("hello world!"); return 0; }
and compiled
> gcc hello.c
which result in cat: /home/linky/workspace/repo/repository/build-tool3: no such file or directory /tmp/cca62xps.o: file not recognized: file truncated collect2: error: ld returned 1 exit status
then typed
> gcc
/usr/bin/gcc
at first, removed gcc system, , reinstall it, didn't work. confused it. please me. lot
Comments
Post a Comment