5
In GCC I typed in the terminal:
gcc -wall -o nomedoarquivo.c nomedoexecutavel
or if you only had 1 file . c [OBS.: typed "a" to make it easier in the]:
gcc -wall -o *.c a
The restriction I used, if there is in the code the library math.h
, had to add -lm
in the code. Then it would look like this:
gcc -wall -o *.c a -lm
How should I type to compile the same file using Clang problems in the code? There are some restrictions?
clang -Weverything ...
but don’t complain that you give too much warning :)– pmg
I use all gcc flags in the Clang. So far I have had no problem, I would like to know if there are any.
– Rafael Bluhm