I get linker error on clang command even if I did not provide any source codes.
$ clang
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/Scrt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It does its work if I pass source code but it is odd. Should it print no input error instead like gcc does?
$ gcc
gcc: fatal error: no input files
compilation terminated.
I am using gentoo so maybe my USE flag thingy causes this problem?
Or is this normal behavior?
Thanks.