mingw32-g ++。exe:错误:CreateProcess:再次没有这样的文件或目录 [英] mingw32-g++.exe: error: CreateProcess: No such file or directory again

查看:278
本文介绍了mingw32-g ++。exe:错误:CreateProcess:再次没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了所有内容,却找不到解决方案。

I have searched all over and cannot find a solution.

我在编译器中安装了code :: blocks版本。 (Windows 7)
每次尝试编译时,都会出现No Such file or directory错误。
我以为可能是空间造成了问题,所以我单独下载并安装了ming到C:\GCC\MinGW-w64

I installed the code::blocks version with the compiler. (Windows 7) Every time I try to compile, I get the No Such file or directory error. I thought maybe the spaces were causing the problem, so I downloaded and installed ming alone to C:\GCC\MinGW-w64

我进入了编译器设置/工具链可执行文件并指向每个路径,因此它不会尝试从程序文件中读取安装了code :: blocks的文件。发生相同的错误。我也尝试过直接转到bin文件夹。

I went into the compiler settings/toolchain executables and directed every path so it wouldn't try to read from the Program Files one where code::blocks is installed. Same error occurred. I've also tried going directly to the bin folder.

我已重置为默认设置。我已自动检测到。我已卸载并重新安装。我认真地尝试了所有事情。

I've reset to default settings. I've auto-detected. I've uninstalled and reinstalled. I've seriously tried about everything.

然后我想也许是因为这是我保存项目的地方,因为它们有空间。因此,我将它们直接放入c:\驱动器。同样的错误。

Then I thought maybe because it's where I'm saving my projects, since they have spaces. So I put them directly to the c:\ drive. Same error.

此功能在我使用它的第一天就起作用了,此后一直是这个问题。因此,您认为重新安装所有内容都能正确解决问题吗?

This worked the first day I used it, after that it's been this problem ever since. So you'd think reinstalling everything would fix it right?

如果有人有解决方案,请告诉!在另一台计算机上使用完全相同的安装文件,编译器可以正常工作,每个设置都与该计算机上的设置完全相同,但在另一台计算机上也可以使用。

If anyone has a solution please do tell! Using the exact same installation file on another computer, the compiler works fine, every setting is exactly the same as it is on this one, except on the other one it works.

以下是错误消息。我做了一个快速的控制台项目来发布这些错误。

Here's the error messages. I made a quick console project just to post these errors.

||=== Build: Debug in hhhh (compiler: GNU GCC Compiler) ===|
 CreateProcess||No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

mingw32-g++.exe -Wall -fexceptions -g  -c C:\Users\Mack\hhhh\main.cpp -o obj\Debug\main.o
mingw32-g++.exe: error: CreateProcess: No such file or directory

每次我进入工具链并重做路径,它们都是正确的。文件在那里,但是由于某些原因代码:: blocks没看到它们。

Yet every time I go into the toolchain and redo the paths, they are all correct. The files are there, but code::blocks for some reason is not seeing them.

在来到这里之前,我试图在code :: blocks论坛上创建一个帐户,但是坏了。激活电子邮件将不会发送,我找不到任何电子邮件地址可以与支持人员联系。我已经尝试使用live.com,gmail.com和mail.com电子邮件帐户进行注册,但他们都没有收到激活电子邮件。

Before coming here, I tried to make an account on the code::blocks forum, but it's broken. Activation email won't send and I can't find any email address to contact support. I've tried registering with a live.com, gmail.com, and mail.com email accounts, and none of them received the activation email.

这也是

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

这是一些屏幕截图。

默认设置。
http://prntscr.com/9eyoi4

重定向到最新的编译器安装。重命名每个路径,以便它们都直接定向到新文件。
http://prntscr.com/9eyqnx

Redirected to the latest compiler install. Redid each path so they all direct to the new files. http://prntscr.com/9eyqnx

推荐答案

AntiVirus错误触发器?或Windows Defender等,如果在系统更新后发现行为改变。

AntiVirus false triggers? Or Windows Defender etc, if the behaviour change was noticed after a system update.

我有 C :: B 16.01 ,但在Win7(64)上安装了远离 C:filesProgram文件等的位置,并且(一旦我弄清楚了如何将其指向某些需要的第三方lib)一切正常。到目前为止...

I have C::B 16.01, but installed well away from C:\Program files etc, on Win7(64) and (once I figured out how to point it at some needed third party lib's) it all works fine. So far...

致谢。

DJB。

这篇关于mingw32-g ++。exe:错误:CreateProcess:再次没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆