Looking at your errors, I see you are trying to include SDL2. Are you able to compile programs without SDL2?
If not, then I'm guessing your compiler isn't setup properly, in which case this link might help you: Setting up codeblocks & mingw
If you have codeblocks and mingw (32 or 64) working and are struggling with including SDL2, then this might help you: Setting up codeblocks & SDL2
If you are 100% sure that both are setup correctly and you still get the exact same error, then I'm assuming something is wrong with file permissions, but I think it's one of the first two.