I want to compile the program using these command:gcc -o test test.c,then it displays these:
yangbin@yangbin-desktop:~/桌面$ gcc -o test test.c /usr/bin/ld: cannot open output file test: Is a directory collect2: ld returned 1 exit status
I cannot understand why,please give me a hand to solve it! I am a freshman.
/*****test.c*********/ #include int main(void) { int input=0; printf("enter an integer:"); scanf("%d",&input); printf("Twice the number you supplied is %d\n",2*input); return 0; }