![](/img/trans.png)
[英]Armadillo C++ and BLAS and ATLAS cannot find lapack blas under mingw32
[英]C++ Mingw32 CreateProcess() failed with error code 2: The system cannot find the file specified
我只是想在notepad ++和mingw32中运行一个基本程序。 我尝试了多种不同的东西,但我继续得到。
Current directory: \\THEBOX\Users\jacks_000\Documents
C:\MinGW\mingw32\bin\g++.exe -g "testpgrm"
CreateProcess() failed with error code 2:
The system cannot find the file specified.
================ READY ================
当我运行nppexec
我使用以下内容
NPP_SAVE
CD $(CURRENT_DIRECTORY)
C:\MinGW\mingw32\bin\g++.exe -g "$(FILE_NAME)"
我也尝试过:
NPP_SAVE
CD $(CURRENT_DIRECTORY)
C:\MinGW\bin\g++.exe -g "$(FILE_NAME)"
我只是使用一个基本的测试程序:
#include <iostream>
using namespace std;
int main()
{
cout<<"Hi";
return 0;
}
如果我以这种方式保存或者我做错了,我不知道在命令提示符下是否会出现问题。 如果这是一个问题,我正在运行Windows 10 。
当前目录:\\ THEBOX \\ Users \\ jacks_000 \\ Documents
我认为这是因为g ++无法访问SMB共享。
尝试在本地编译该文件。
问题在于“C:\\ MinGW \\ mingw32 \\ bin \\ g ++。exe”的位置。 它在PC上的位置,实际文件名是什么,取决于您的安装。
例如,在我的机器上,我有旧版本的“C:\\ Program Files(x86)\\ CodeBlocks13_02 \\ MinGW \\ bin \\ mingw32-g ++。exe”,但是在另一个文件夹中有较新的安装。
所以你需要找到编译器的可执行文件名和位置。 您不需要使用前两行,例如“C:\\ Program Files(x86)\\ CodeBlocks13_02 \\ MinGW \\ bin \\ mingw32-g ++。exe -g test.c”。
我做了这个,结果是:
C:\Program Files (x86)\CodeBlocks13_02\MinGW\bin\mingw32-g++.exe -g test.c
Process started >>>
<<< Process finished. (Exit code 0)
================ READY ================
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.