Ld 1 returned 1 exit status

i am getting the error Ld1 returned 1 exit status when i try to run a code in the same folder(project) in Clion . only 1 code works and the other on returns this error
the problem is solved when i delete 1 file and the project folder has only 1 .cpp file

hello @lakshayx9-g

please take help of stack overflow/google for any system/ide related issues.