Can't find file executable in your configured search path for gnc gcc compiler

前端 未结 9 529
执笔经年
执笔经年 2020-12-12 12:55

My problem is that code::blocks error message tells me that it can\'t find file executable in the search path for gnc gcc compiler. Although, I don\'t know w

相关标签:
9条回答
  • 2020-12-12 13:32

    Fistly, Code Blocks is not a compiler. It is just an integrated development environment.

    So, you must show the path of your compiler at first, (if you dont have a compiler you have to download an install, it is not difficult to find. f.e. GCC is good one.) If code blocks could not find automatically the path of compiler it is an obligation to show it yourself.

    But when you install, probably Code Blocks automatically find your compiler.

    Enjoy.

    0 讨论(0)
  • 2020-12-12 13:32
    • Uninstall/Remove your current codeblocks compiler.
    • Install codeblocks using this link that contains GCC compiler files: http://sourceforge.net/projects/codeblocks/files/Binaries/13.12/Windows/codeblocks-13.12mingw-setup-TDM-GCC-481.exe.
    • Now go to : Settings > Compiler.... > ToolChain Executables Tab
    • CLICK on Auto-detect button and then click OK button. Now just restart CodeBlocks and start writing your codes and use the Build and run option. It will RUN normally.
    0 讨论(0)
  • 2020-12-12 13:39

    This simple in below solution worked for me. http://forums.codeblocks.org/index.php?topic=17336.0

    I had a similar problem. Please note I'm a total n00b in C++ and IDE's but heres what I did (after some research) So of course I downloaded the version that came with the compiler and it didn't work. Heres what I did: 1) go to settings in the upper part 2) click compiler 3) choose reset to defaults.

    Hopefully this works

    0 讨论(0)
  • 2020-12-12 13:44

    For that you need to install binary of GNU GCC compiler, which comes with MinGW package. You can download MinGW( and put it under C:/ ) and later you have to download gnu -c, c++ related Binaries, so select required package and install them(in the MinGW ). Then in the Code::Blocks, go to Setting, Compiler, ToolChain Executable. In that you will find Path, there set C:/MinGW. Then mentioned error will be vanished.

    0 讨论(0)
  • 2020-12-12 13:48

    Just open your setting->compiler and click on the reset defaults and it will start work.

    0 讨论(0)
  • 2020-12-12 13:48

    Here's an easy way for Windows users.

    1. Uninstall the existing codeblocks from your system.
    2. Restart system.
    3. Go to http://www.codeblocks.org/downloads/26
    4. Download the codeblocks-16.01mingw-setup.exe file. It includes the GCC/G++ compiler and GDB debugger from TDM-GCC (version 4.9.2, 32 bit, SJLJ).
    0 讨论(0)
提交回复
热议问题