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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -