0

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.

1 Answers1

2

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.

steeldriver
  • 136,215
  • 21
  • 243
  • 336