简体   繁体   English

在 notepad++ 上编译 c++ 时出现“找不到指定的文件”错误

[英]Error “The specified file was not found” when compiling c++ on notepad++

I'm trying to compile c++ on notepad++ using the nppexec plugin and somehow, i get the "The specified file was not found" error.我正在尝试使用 nppexec 插件在记事本 ++ 上编译 c++,不知何故,我得到“找不到指定的文件”错误。 This is the script i'm using npp_save cd "$(CURRENT_DIRECTORY)" g++ "$(FILE_NAME)" -o $(NAME_PART) -march=native -O3 NPP_RUN $(NAME_PART) I installed MinGW ver 0.602 and i double checked the paths inside the system variables, there's nothing wrong with it.这是我正在使用的脚本npp_save cd "$(CURRENT_DIRECTORY)" g++ "$(FILE_NAME)" -o $(NAME_PART) -march=native -O3 NPP_RUN $(NAME_PART)我安装了 MinGW 版本 0.602,我仔细检查了系统变量中的路径,没有任何问题。 This is the piece of code i'm trying to compile and execute这是我试图编译和执行的一段代码

#include <iostream>
using namespace std;
int main(){
    cout<<"test"<<endl;
    system("pause");
}

The source could be the file name.源可以是文件名。 Check the file's name again for spaces, special characters, things like that, it might fix your problem再次检查文件名是否有空格、特殊字符等,它可能会解决您的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM