I want to create a binary file from a C file using ubuntu. I have done something like:
gcc -c ArrayError3.c -o ArrayError3.
This creates a file ArrayError3 on my Desktop. When I click on it, ubuntu tells me that there is no application installed for object files. I am very much a newbie to C and linux. Could anyone please advise me on how to solve this issue? Many thanks.
Just drop the
-cso it won’t stop after making the object file. The-coption tellsgccnot to run the linker. If omit it, gcc will make a full blown executable for you.