User forums > Help

compiler problem : no such file or directory

(1/4) > >>

amiraghazadeh:
all dear members.
I have just installed code::blocks 16.01 in order to start learning programming. however, I have received vague problem with title no such file or directory when I tried to run Hello world example.
I also tried all ways that I found on internet but all of them were worthless.
it would be great help if someone helps me to solve this problem.
Regards.

BlueHazzard:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

amiraghazadeh:
I am running Code::Blocks version 16.01 on windows 7 SP1). The compiler I use is GCC/G++ compiler and GDB debugger from TDM-GCC version  (version 4.9.2, 32 bit, SJLJ).  It is the last version which is available on Code::Blocks's site.

When I installed this software on my PC, at first time that I wanted to run the simplest example which is existed (hello, world) in console application, it seemed that it was not able to build a model. I have received message as follow:
||=== Build: Debug in g (compiler: GNU GCC Compiler) ===|
 CreateProcess||No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Build log:

--- Code: ---mingw32-gcc.exe -Wall -g  -c D:\Users\ART\Desktop\g\main.c -o obj\Debug\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

--- End code ---


I have already tried several ways which I found on internet.
I installed Code::Blocks 13.12, but still I had the same problem.
I also reset defaults because I saw that in some versions this could help members to solve their problems.
In addition, I tried to use another compiler; however, I was not able to download another compiler.

... but none of them worked.

BlueHazzard:
(To devs: If this error arises there should be a more detailed error messages, like compiler in path not found, with detailed search paths or so...)

This error can have multiple causes, but i think the main cause is that codeblocks can't find or launch the compiler.
Have you used this installer:
http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01-setup.exe ?

if so, the compiler should be installed in the codeblocks installation folder. I can't check this at the moment, but the default installation path should be something like c:\program files (x86)\Codeblocks\MinGW
You should check if the path under "Settings->Compiler->Toolchain executables->Compiler installation directory" points to this location

you can also search for "mingw32-gcc.exe" and point the "Compiler installation directory" to the corresponding bin folder

a other cause can be that your anti virus program blocks the compiler "mingw32-gcc.exe" because it thinks that it is a virus. The solution for this would be to deactivate the anti virus, or add the compiler directory to the ignore list.

greetings

amiraghazadeh:
1- yes. I used this link to install codeblocks.
2- d:\program files (x86)\Codeblocks\MinGW is my installation path. I also changed my installation path to  d:\program files (x86)\Codeblocks\MinGW\bin  but codeblocks did not work again.
3- about antivirus. I tried to install codebblocks without antivirus but I did not get better result.
4- in addition, I installed codeblocks on windows xp but I got the same result.

Navigation

[0] Message Index

[#] Next page

Go to full version