I created source code as a .c file and tried running clang exampledebugging.c into it.
It came up empty.
Can anyone please help me? I am trying to compile this program into a binary executable format.
Generally, Linux commands aren't needlessly verbose - clang doesn't necessarily output anything to the terminal if the command succeeds. In the case of
clang exampledebugging.c
it should simply have created a binary executable with the default name a.out that you can execute using ./a.out. If you want the output file to be named differently, use the -o option:
clang exampledebugging.c -o exampledebugging
The GNU compilers gcc and g++ behave the same.
a.outin your current directory? – steeldriver Aug 12 '21 at 14:47-oex.clang exampledebugging.c -o exampledebugging. Same thing withgcc/g++– steeldriver Aug 12 '21 at 15:17