-1

I have installed codeblocks in windows 7 first time and try to run a simple C program but I get this error?

can't find compiler executable in your search path (GNU GCC compiler)

I tried many things to solve it but unable to compile.

Spikatrix
  • 20,225
  • 7
  • 37
  • 83
sadaf011
  • 7
  • 1
  • 4

2 Answers2

0

Have you installed the Mingw compiler or any other simiar compiler? If not install that first. After you have done so, you need to set codeblocks to use that compiler. You can do that by going to the settings>compiler settings and set the necessary options there. You may need to refer the place where you have installed Mingw or other compiler. Note the compiler executable is gcc for C and g++ for C++ and the linker is ld i guess. Debugger is gdb. You need to tell codeblocks where are these located.

S Praveen Kumar
  • 341
  • 1
  • 13
0

I also received that error. I fixed it using Settings -> Compiler -> Global compiler settings -> Toolchain executables -> Auto detect.

Mika Sundland
  • 18,120
  • 16
  • 38
  • 50