User forums > Help

gcc error while building

(1/2) > >>

Swashia:
Hello,

When I tried to compile a new program, the build log gave me this error and it refused to compile.

Compiling: C:\Users\Swashia\Desktop\swashia\main.c
mingw32-gcc.exe: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
My version of Code blocks is "codeblocks-10.05mingw-setup" which includes compiler

I tired to go to Settings/compiler and debugger/toolchain executables/ and press auto detect
but problem still persist.

It was working fine when last time I used code blocks. This problem seems to pop out of no where.

Any suggestion?

OS: WINDOW 7 64bit

stahta01:
Suggestion 1: This is Windows, so try rebooting the computer.
Suggestion 2: Do not create programming projects on the desktop; it might not be allowed in Windows 7
Try doing it under your "Documents" folder instead.
Possible Problem 1: Some people have claimed that version of mingw (with CB 10.05) has issues with windows 7; I never noticed any but I use 32 bit Windows 7.
Possible problem 2: Anti-virus software can cause issues.

My guess is a bad installation of MinGW GCC; I would remove the current installation of MinGW GCC and install a newer copy of MinGW while I do it.
(Edit 1: A bad toolchain setup can also look like a bad GCC installation)
Edit2: Link to toolchain howto http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Compiler-neutral_setup_steps

NOTE: If you have a MinGW GCC installed on any drive root as in X:\mingw then that is THE only copy of MinGW GCC that will work in nearly all cases!!

Tim S.

Swashia:
I tried to create a project on my document folder
I tried to reinstall CodeBlocks and installed compiler separately at C:/MinGw
I made sure toolchain auto detect MinGw at C:/MinGw
I made sure C:/MinGw is the only MinGw folder
I tried to disable my antivirus

and the problem still here

Alpha:
What does your full build log look like?

Swashia:
mingw32-gcc.exe    -c C:\Users\Swashia\Desktop\swashia\main.c -o C:\Users\Swashia\Desktop\swashia\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

Navigation

[0] Message Index

[#] Next page

Go to full version