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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -