“没有这样的文件或目录”; CodeBlocks中的错误 [英] "No such file or directory" error in CodeBlocks
问题描述
这是我在CodeBlocks IDE中遵循的步骤:
Here is the steps I followed in CodeBlocks IDE:
Create a new project->console->C->Name->debug and release->finish
所以当我选择 main.c
并构建它,它应该显示 Hello World!,但是我得到了这个奇怪的 mingw32-gcc.exe:错误:CreateProcess:没有这样的文件或目录
错误。
So when I choose main.c
and build it, It should show the "Hello World!", but I get this weird mingw32-gcc.exe: error: CreateProcess: No such file or directory
error.
我已经用这种方式编写和编译了大约20个C文件,但我不知道最近发生了什么IDE。
I've written and compiled about 20 C files this way, but I don't know what has recently happened to the IDE.
我检查了CodeBlocks论坛并用谷歌搜索了这个问题;没有结果
有什么想法吗?
I've checked the CodeBlocks forum and googled this problem;No results
Any ideas?
有效日志:
-------------- Build: Debug in C (compiler: GNU GCC Compiler)---------------
mingw32-gcc.exe -Wall -g -c "C:...\Project Files\C Codes\C\main.c" -o obj\Debug\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
三天前我使用CodeBlocks 10.02,它成功编译并运行了代码。它昨天显示了此错误。我以为可能没有包含代码文件,所以我从项目中删除了之前的代码并添加了新文件(我喜欢大约20个程序,并且总是能得到结果);但是错误仍然存在。然后,我重建了项目,但仍然出现错误。我今天卸载了版本10.02,并安装了新版本12.11。再次出现这个奇怪的错误。
I used CodeBlocks 10.02 three days ago and it compiled and ran the code successfully. It showed this error yesterday. I thought that maybe the code file wasn't included so I removed the previous code from the project and added the new file (I do like this for about 20 programs and always get results); but the error still exists. Then I rebuilt the project but still got the error. I uninstalled ver.10.02 and installed a new version 12.11 today. Again I get this weird error.
P.S。似乎其他人也有此问题:
mingw32-g ++。exe:错误:CreateProcess:没有这样的文件或目录
P.S. It looks like someone else have had this problem too:
mingw32-g++.exe: error: CreateProcess: No such file or directory
推荐答案
终于明白了:
在我的情况下,问题是由名为 EGCS
的程序(实验性/增强GNU编译系统)。我将它与FORTRAN
编译器一起安装,作为PSCAD(Power Systems CAD)的
前提条件。只需将其删除,就可以了。
(可悲的是,由于一个错误,我删除了
整个PATH环境变量。那又如何?...我
最终安装了新的Win7,但是在卸载了我的Ubuntu后,由于卸载
GRUB 导致的引导困难 b
,我再次搞砸了fixmbr和fixboot $ b $。 b fallas(但是我丢失了我的笔记本电脑DVD!)...总而言之,EGCS嘲笑我
我花了0.5 * MONTH ...)
In my case, the problem resulted from a program called EGCS (Experimental/Enhanced GNU Compiler System). I installed it as a prerequisite for PSCAD(Power Systems CAD) along with a FORTRAN Compiler. Just remove it, and you'll be fine.
(Sadly, I deleted the entire PATH environmental variable due to a mistake. So what?...I ended up installing a new Win7 but after uninstalling my Ubuntu which again due to the Boot difficulties which resulted from uninstalling GRUB, I again ended up messing around with fixmbr and fixboot fellas(But I've lost my Laptop DVD!)...In summary, The EGCS laughed at me for a 0.5*MONTH...)
有关此类问题的更多信息,请访问此处(代码::区块论坛)
For more information about such problems visit here(Code::Blocks Forum)
这篇关于“没有这样的文件或目录”; CodeBlocks中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!