This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Gcc cannot open .c file after creating object file


Hi all,

I am new to ubuntu. I am getting a weird error. I am not sure where the
fault is.

Whenever i creat a .c file and execute it it changes the source file to
binary file.

I tried with the program hello world.

It compiles it properly, but after the linker it overwrites the source file

the command line prompt i used were

gcc -c ccc.c

gcc -0 ccc.c ccc.o

./ccc.o

any help would be appreciated

Thanks
Anil
-- 
View this message in context: http://www.nabble.com/Gcc-cannot-open-.c-file-after-creating-object-file-tf4616209.html#a13183611
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]