简体   繁体   中英

codeblocks permission denied

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM