EDIT: Solution found: Tools > Compiler Options > Settings > Linker > Do not use standard system startup files or libraries. End edit.
Just wondering if there's some thing (i.e setting?) that could be changed to fix this issue before I decide to completely reinstall DevC++;
For whatever reason, I can now no longer compile even the most basic code without getting various [Linker error] undefined reference etc errors when trying to compile a single source file, though I previously could without issue. However, creating a project and compiling the exact same code (same location etc), everything compiles and runs fine.
using namespace std;
And various other, similar, errors.
[Warning] cannot find entry symbol _mainCRTStartup; defaulting to 00401000
\Temp\ccGAbaaa.o(.text+0x17) In function `ZSt17__verify_groupingPKcjRKSs':
[Linker error] undefined reference to `std::string::size() const'
\Temp\ccGAbaaa.o(.text+0x135) In function `main':
Please note: I'm only a beginner , but as I said, if I use this exact same code with a project it works fine. It's as if I've done something to DevC++ to cause this, but I can't for the life of me see how/where I would/could of done this.
I'm using DevC++ v126.96.36.199.
Please let me know if any other info may help.