in this simple code, it replies error messages like this in replit ide.
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /tmp/ex-805695.o: in function main': /home/runner/Programming-Methodologies/./Lab #5/ex.cpp:9: multiple definition of
main’; /tmp/lab_exercise-c043ba.o:/home/runner/Programming-Methodologies/./lab_exercise.cpp:12: first defined here
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:10: main] Error 1
However, there are no errors in this code, and it works perfectly well in other ide.
What would be the problem, and are there any settings to fix this problem?
user25272327 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.