写了一个程序,gcc test.c -o test 的时候 出现奇怪的提示,不是warning 也不是error,
# gcc -g test.c -o test
/usr/bin/ld: cannot open output file test: Is a directory
collect2: ld returned 1 exit status
因为: 生成的目标文件test的所在目录有一个名叫test的目录。
写了一个程序,gcc test.c -o test 的时候 出现奇怪的提示,不是warning 也不是error,
# gcc -g test.c -o test
/usr/bin/ld: cannot open output file test: Is a directory
collect2: ld returned 1 exit status
因为: 生成的目标文件test的所在目录有一个名叫test的目录。