Query about a new file in Clion and IntelliJ

Hi guys, when I’m using Clion and IntellJ, I found when I try to create a new file and run, I would always meet some problems clang: error: linker command failed with exit code 1 (use -v to see invocation)
, anyone know how to solve it?
Regards