Tried to run compiler executable 'C:\Program Files\CodeBlocks\MinGW/bin/mingw32-gcc.exe', but failed! I get the following error if I try to build from Codeblocks Goto "Settings->Compiler.->Global compiler settings->GNU GCC Obj-C Compiler->Toolchain executables" and fix the compiler's setup. However, the problem is that it's still not working. The Codeblocks uninstall removed the Codeblocks folder in Program Files, but when I reinstalled Codeblocks again (version without MinGW bundled together), the "GNU GCC Obj-C" settings I made with the previous installation was still there, along with the -lobjc flag in the "linker settings" tab. I did as suggested in Mike Kinghan's answer below, and uninstalled my older Codeblocks instgallation, then reinstalled MinGW and codeblocks separately.
Wxwidget code blocks with gnu c++ cygwin tutorial code#
How do I start compiling Objective C code in Windows (preferably using GCC and Codeblocks) ? That I got from here, but it gives me the same CreateProcess error. I also tried gcc -g -fgnu-runtime -O -c some_class.m I gave the following command: mingw32-gcc.exe -Wall -g -c D:\backup\cb_files\objc_files\test_prog_proj\test_prog.m -o obj\Debug\test_prog.o -lobjcīut I get the same error in cmd mingw32-gcc.exe: error: CreateProcess: No such file or directory I have also tried manually compiling the above program in Windows cmd by going into the folder containing the. Process terminated with status 1 (0 minute(s), 2 second(s))ġ error(s), 0 warning(s) (0 minute(s), 2 second(s))Īs shown above, it does not show the -lobjc option Mingw32-gcc.exe: error: CreateProcess: No such file or directory Mingw32-gcc.exe -Wall -g -c D:\backup\cb_files\objc_files\test_prog_proj\test_prog.m -o obj\Debug\test_prog.o This is the build error message I get in codeblocks: - Build: Debug in test_prog_proj (compiler: GNU GCC Obj-C Compiler). However, I have followed the steps mentioned in this tutorial and added the -lobjc option, but it doesn't compile I read this wiki tutorial which says having GCC will allow me to compile objective C by just adding -lobjc to the compiler options I downloaded Codeblocks bundled with GCC from here