Hello everyone,
Whenever I build a cpp file I get the following error: ld.exe||cannot find crt2.o: No such file or directory|
I'm confused because I didn't apply changes of any sort to code::blocks files, the same programs that now are giving this error used to build and run just fine. In particular it happened that I was writing some code and when I built it the first time everything went fine, I just closed the PC and when I re opened the file later and built it again to make sure it worked (without changing anything) it gave the error I wrote at the beginning of the post and it seems to have ''spread'' to every other cpp file I try to build in code::blocks.
I tried to look for the crt2.o file in the original folder of C.B. but I didn't find anything (of course). I'm thinking of re installing C.B. but if the problem can be solved in other ways (if re installing cb is even a solution) I'd prefer that. Any help would be great
edit01: I've also noted that after building unsuccessfully a cpp file two files called project_name.depend and project_name.layout are created in the project folder, which didn't use to happen before.
I'm using the GNU GCC Compiler.