Codelite suddenly gives me "undefined reference of main" ?
Hello all!
I just recently started to learn how to code in C++.
Everything has been going good and I am learning through a course on Udemy.
Everything went fine and had set it up accordingly to what was instructed to do and was on my way to learn how to code.
However, as of yesterday, going through the course and learning, for some reason Codelite just spat out the error "undefined reference of main" out of nowhere.
The first second it could compile, build and execute and then the next time I did it it just spat out that error.
Confused and I did not know what was happening, I was looking around for solutions as to what could have caused this to happen and how to solve it.
The only hint I could find was was that Codelite was apparently trying to compile, build and execute in C, instead of C++. This is from what I understood is the error that is given when you try to execute C++ code in a C setup.
Moreover, I tried re-installing Codelite and installing different versions of Codelite, and it would still express that error.
I decided to give the setup Wizard a go again and set it up again as instructed from the course.
And the default code in the template for C++ popped up in the projects window. I managed to compile, build and execute it with no issues. However, if I changed one letter in the cout << "Default Project" << endl; to cout << "Default Projet" << endl; The same error appears again.
Codelite lets me compile this code but not build it and execute it.
I do not know what is causing this.
This version of Codelite was installed through Terminal using yay command.
I will add some attachments.