Compilling C code in Linux terminal -
I am using Linux Mint 16. I had a code that I change a bit. I use two lower commands in the terminal to run the code. The problem is that it does not give me any errors, but the changes are not implemented, which means that it runs the previous version of the code.
gcc -std = c99 -cCode.c -o P> GCC -STD = C99-C Codecau-o code.o will insert the compiled object file in Code.o , not ./ code as you expect it to be .. < / P> In addition, do not run the linker indicating -c , so effectively you end up with an object file that can not be run. GCC -STD = CAMT code code -O code will produce what you need. For the complete list of GCC use either flag man gcc or
Comments
Post a Comment