In GCC I typed in the terminal:
gcc -wall -o nomedoarquivo.c nomedoexecutavel
or if you only had 1 .c file [NOTE: typed "a" to facilitate the executable name]:
gcc -wall -o *.c a
The restriction I used, if there was in the code the math.h
library, I had to add -lm
to the code. Here it would look like this:
gcc -wall -o *.c a -lm
How should I type to compile the same file using Clang so that problems appear in the code? Do you have any restrictions?