User forums > Help

gcc error while building

<< < (2/2)

stahta01:

--- Quote from: Swashia on November 01, 2012, 02:42:51 am ---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
 


--- End quote ---

From the windows command line try this.


--- Code: ---SET MINGWTOOLCHAIN=C:\mingw
SET CBPROJECTFOLDER=C:\Users\Swashia\Desktop\swashia

SET PATH=%MINGWTOOLCHAIN%\bin;%PATH%

CD /d %CBPROJECTFOLDER%
mingw32-gcc.exe -c main.c -o main.o


--- End code ---

If you get an error post the error.

If it works then likely your MinGW GCC installation is OK.

Tim S.

Swashia:
error  :(

C:\Users\Swashia\Desktop\swashia>mingw32-gcc.exe -c main.c -o main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory

change the folder to my document doesn't work neither


C:\Users\Swashia\Documents\Swashia>mingw32-gcc.exe -c main.c -o main
mingw32-gcc.exe: error: CreateProcess: No such file or directory

stahta01:

--- Quote from: Swashia on November 01, 2012, 03:55:16 am ---error  :(

C:\Users\Swashia\Desktop\swashia>mingw32-gcc.exe -c main.c -o main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory

change the folder to my document doesn't work neither


C:\Users\Swashia\Documents\Swashia>mingw32-gcc.exe -c main.c -o main
mingw32-gcc.exe: error: CreateProcess: No such file or directory


--- End quote ---

So, its not a Code::Blocks problem.

I guess that cause as bad MinGW installation, MinGW version not compatible with Win7, Win7 security setting issue, or Virus Scanner interference.

Edit: I changed the order from what I think is most likely first to least likely last.

Edit2: My guess depends on you really doing what I asked you to do; if the path was NOT set correctly then you could just have the path set wrong.

Tim S.

Swashia:
I don't think it is window 7 problem since it was compiling fine before.

The path shouldn't be wrong neither
since Code Blocks could auto detect my installation of MinGW.

Does MinGW folder have to be in specific path?

Anti Virus doesn't seem to cause it.
 My other computer has same AV program installed and code blocks compile without complaining

Swashia:
Solved

The problem is the program called  EGCS (Experimental/Enhanced GNU Compiler System). I don't know how it get here, but
I uninstall it and everything work fine.

Navigation

[0] Message Index

[*] Previous page

Go to full version