Question

I can't seem to get my C++ project working in CodeBlocks.

The errors I'm receiving are after trying to compile:

cannot find -lmingw
cannot find -lSDL2main
cannot find C:\C++Libraries\MingW\SDL2-2.0.3\lib\64: Permission denied.
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top