mrkorig
July 4th, 2010, 01:44 AM
hi, i have created a simple C code in gedit, but i have problems in compiling.
cc -c sample.c works fine in the terminal
but when i input cc -o sample sample.c it gives me this msgs.
mark@mark-laptop:~$ cc -o sample sample.c
/usr/bin/ld: cannot open output file sample: Is a directory
collect2: ld returned 1 exit status
thank u in advance for the help
cc -c sample.c works fine in the terminal
but when i input cc -o sample sample.c it gives me this msgs.
mark@mark-laptop:~$ cc -o sample sample.c
/usr/bin/ld: cannot open output file sample: Is a directory
collect2: ld returned 1 exit status
thank u in advance for the help