I recently downloaded Clion and ran into some problem. First I wrote one simple code (it works), then I created another C++ file and wrote another simple code. But now, when running either of these two codes, an error is thrown:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
when I remove one of the codes, the other one starts working. I seem to have found a solution on stackoverflow and it says just do Clean and then Build, though I can't figure out how to do it. Will you help?